Blockland Forums > Modification Help

Getting the brick number from the brick name

Pages: << < (5/5)

Nexus:


--- Quote from: Chrono on June 28, 2011, 12:17:31 AM ---They are the same.
Datablocks will ALWAYS reserve the number range: 3-4099 on both the client and the server.

My method will work, but go ahead and not try.

--- End quote ---

Wait, is $uiNameTable a default array?

Chrono:


--- Quote from: Nexus on June 28, 2011, 12:52:39 AM ---Wait, is $uiNameTable a default array?

--- End quote ---
It's created just as you're spawning in a server based on the bricks the server has. (Yes it's client sided)

Nexus:


--- Quote from: Chrono on June 28, 2011, 01:07:56 AM ---It's created just as you're spawning in a server based on the bricks the server has. (Yes it's client sided)

--- End quote ---

fasf you are correct.  I wish that was posted earlier before I created a dozen different methods, ten of them faulty, to accomplish this.

Also interesting: you can do

--- Code: ---export("$*", "config/allvars.txt");
--- End code ---

To see every global variable in the game.
Useful stuf.

Chrono:

Funny story, to find it, I did:
export("$*1x1*","config/bricks.txt",0);
after joining some random server.

Pages: << < (5/5)

Go to full version