Skip to content

Slime Ore - #9

Closed
Azael-Snively wants to merge 5 commits into
PixelGuys:masterfrom
Azael-Snively:master
Closed

Azael-Snively wants to merge 5 commits into
PixelGuys:masterfrom
Azael-Snively:master

Conversation

@Azael-Snively

@Azael-Snively Azael-Snively commented Sep 21, 2020 •

Copy link
Copy Markdown

This it is Slime Ore

@IntegratedQuantum IntegratedQuantum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all thank you for considering to contribute to Cubyz.

Apart from minor (mostly syntactical) issues, your pull request misses just one important thing:

What is slime ore?

You probably have some great ideas in the back of your head, but if you don't write them down, we are not going to understand, why we should add slime ore into the game.

And now about those syntactical issues:
First of all: The file names.
The internal convention in Cubyz is to use lower-case words separated by "_" instead of " ".
So the correct file names would be slime_ore and slime_ore.png

it for make armor in slime
@Azael-Snively

Copy link
Copy Markdown
Author

Slime Ore he will serve for make armor in slime it just like an ore

@Azael-Snively

Copy link
Copy Markdown
Author

i fix the problem

@IntegratedQuantum

Copy link
Copy Markdown
Member

Cubyz features a system that can automatically generate ores with corresponding tools (and armor, once we add it).
To compete with these randomly generated ores, your slime ore needs to offer more than that.

If you have no such things to offer, but still think that your slime ores needs to be added to the game, I suggest you write an Addon instead of contributing to the base game.

@Azael-Snively

Copy link
Copy Markdown
Author

Can You tell me what should i do for make a better pull request please

@IntegratedQuantum

Copy link
Copy Markdown
Member

Your pull request is (mostly) fine.

The problem is the idea behind your pull request.

If you want your idea to get into the base game, you need to offer the player something useful or unique.

Slime ore as you present it is neither unique(there are lots of ores in the game already) nor useful(it can only be used for probably weak armor).

@Azael-Snively

Copy link
Copy Markdown
Author

can you give me an example of what should i say to be convincing

@IntegratedQuantum

Copy link
Copy Markdown
Member

If I knew what you should say, I would have said it already.
But I can try to give you examples of how other blocks/items are unique or useful:

Coal

  • can be used as efficient fuel source(not implemented yet)
  • can be used to craft torches(currently our only artificial light source)

Wood

  • can be used for the workbench which is needed to make tools and progress.
  • tools have a special property: Regrowth which slowly regrows a tool.
  • It is good for decoration.

Stone

  • It's unique because it is a very common decorative block
  • it is useful because it makes the most efficient tools without having to mine for a long time.

Apples

  • They are unique and useful because they are the only accessible food source(right now).

Cactus, Snow, Ice, Gravel, Mossy Cobblestone, Grass

  • Adds variety to biomes
  • Can be used for decoration

randomly generated ores

  • Add variety to the underground.
  • Can be used to make possibly useful tools/armor(partly implemented).
  • Can be used for colored torches(planned).
  • Add new things to discover when a new world is created.

@Azael-Snively

Copy link
Copy Markdown
Author

Ok i see

@Azael-Snively

Azael-Snively commented Sep 30, 2020 •

Copy link
Copy Markdown
Author

Slime Ore it will be first for add variety to the underground it will be for make armor and weapon precisely the hammer(i will add it)
and the wand to. Slime Ore should be burn in a furnace for get slime ball

@Azael-Snively

Copy link
Copy Markdown
Author

it was convincing

@Azael-Snively

Copy link
Copy Markdown
Author

can you give me a link for discord server please

@IntegratedQuantum

Copy link
Copy Markdown
Member

https://discord.gg/XtqCRRG
(The same link is also at the bottom of the Readme.)

@Azael-Snively

Copy link
Copy Markdown
Author

so did my pull request was accepted

GeraForever referenced this pull request in GeraForever/Cubyz May 26, 2025
Do some of the changes quantum asked for
IntegratedQuantum added a commit that referenced this pull request Jun 6, 2026
I observed this crash after the last play session:
```
#0  0x000000000137d1a7 in utils.CircularBufferQueue(*server.server.User).pushBack (self=0x23e1630 <server.server[userDeinitList]>, elem=0x7ff9bd0ad000) at utils.zig:512
#1  utils.ConcurrentQueue(*server.server.User).pushBack (self=0x23e1630 <server.server[userDeinitList]>, elem=0x7ff9bd0ad000) at utils.zig:614
#2  0x000000000137cc1a in server.server.disconnect (user=0x7ff9bd0ad000) at /home/mint/Cubyz/src/server/server.zig:724
#3  network.Connection.disconnect (self=0x7ff9bd0e3000) at network.zig:1831
#4  0x000000000137c30a in network.Connection.deinit (self=0x7ff9bd0e3000) at network.zig:1513
#5  server.server.User.deinit (self=0x7ff9bd0ad000) at /home/mint/Cubyz/src/server/server.zig:189
#6  0x00000000013f77f5 in server.server.User.decreaseRefCount (self=0x23e1630 <server.server[userDeinitList]>) at /home/mint/Cubyz/src/server/server.zig:209
#7  server.server.deinit () at /home/mint/Cubyz/src/server/server.zig:589
#8  server.server.startFromExistingThread (port=...) at /home/mint/Cubyz/src/server/server.zig:701
#9  0x000000000156d548 in server.server.startFromNewThread (port=...) at /home/mint/Cubyz/src/server/server.zig:695
#10 Thread.callFn__anon_469235 (args=...) at /home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:422
#11 Thread.PosixThreadImpl.spawn__anon_469217.Instance.entryFn (raw_arg=0x7f155e0) at /home/mint/Cubyz/compiler/zig/lib/std/Thread.zig:752
#12 0x00007ffff7c94ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#13 0x00007ffff7d268d0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
```

The problem was that a disconnect tried to add to the `userDeinitList`,
but the userDeinitList was cleaned just before.

To fix this I moved the connection manager first, which also makes more
sense since it avoids receiving new connections while already starting
to clean things.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants