![]() |
Addtiledef
I don't understand how the addtiledef script works.
I tried adding my own tiles in for the server and all I got was nothing. -.- //#CLIENTSIDE if (created) { addtiledef reborn_tiles.gif,0,0; } if (playerplayerenters) { addtiledef reborn_tiles.gif,0,0; } can anyone tell me what I'm doing wrong? |
I thought you had to specify the prefix of the level names it applies to, or is that addtiledef2 only?
|
The second-to-last zero, that's what levelnames have to start with. I believe the syntax is:
NPC Code: That should be what you need o-o |
Quote:
NPC Code: I've personally never used the second one, but it is used on Babylon, reason why I have the syntax o-o Hope that helps! <3 |
and this script will make it work all the time or do I have to add it to a player's weapon inventory?
|
Add it to a weapon, in case someone removes their tile definitions.
|
The script will work from when the player enters the level to the time when the player disconnects from the server. I'd suggest putting it inside an 'if (created) {' block inside a system NPC, clientsided of course. That's how we have it on Babylon.
|
1 Attachment(s)
oh yeah and I did something wrong I think...
now the level in both editor and offline mode have scrambled/distorted gfx all over life theres a big error.. //#CLIENTSIDE if (created) { addtiledef reborn_tiles.gif,gamba_test.nw,0; ^thats what I did (and I don't understand what the 0 is for) and this is what I got (screenie): |
Ah yes, the spazzy tiledefs. And I don't understand what the zero is either, I just leave it.
As for the spazzy problem, just exit and reenter levels and move around a bit as the tileset downloads from the server. Or...! If you're doing this offline, then make sure the Graal exe can find the tiledef image. That spazzy tiledef happens, too, when Graal can't locate the tileset you want. Just fiddle around, I get that thing all the time. o-o |
OH?!
damn I've been fiddling with it awhile...but I'm sure it'll work eventually. Thank you everyone for your help. =) |
ok I give up everything is having a problem.
I want to make it work on my online server and offline of course so I can make levels with it. I want it to work on all levels whenever someone signs on. Can someone tell me exactly what to do/script step by step please? -I feel retarded =( |
Gamba we just need to work on it by the server with the lvls in the script after it finds the teldefs we can then start bilding the lvl thats the way to make it or how i learnd from One of the servers i worked at
|
use setbackpal tilesetname.png;
|
thanks nullify
and everyone excuse the person I haven't fired yet -.- |
it says file does not exist when I try the backpal
aren't backpals used for a different type of lighting effects? O_O |
Nevermind that last post...
it works but every tiles is a new neon color instead now XD |
how do I make this work both online and offline for every level?
what do I do on rc? what do I do script on the npc? |
Erm, backpals are deprecated. Use seteffect.
|
Quote:
That command has been deprecated and I'd like to never see it again. Please do not use it, ever again. Thank you <3 |
Quote:
Also, for the levelstart part, you only need to add the first few characters of the levelname. This is useful for gmaps where all the levels start with the same thing, such as babylon_*.nw or rift_arena1_*.nw For test levels, or other levels that you only want the addtiledef to work on single levels, add the full name so that it doesn't accidentally load on another level that has a similar name (testleveljo for testleveljo.nw, but it would also work on testleveljohn.nw) |
Cheers to Cal o-o :D That's a good way of explaining it.
|
Oh, and yes. setbackpal = evil.
....unless of course you want to confuse the hell out of a lat ^_~ *halo* |
Quote:
On topic: Setbackpal, along with playersays(), followplayer, and toinventory have been deprecated with Graal3 and GS2. The command/function 'toweapons' is severely frowned upon and may/should be deprecated soon, as well. |
Quote:
|
For your tiledefs problem:
C:\*GRAALFOLDER*\levels\tiledefs\ Delete all the text documents within here to restore the options to default. For your script problem: Refer to post in this thread by ForgottenLegacy. |
Use .png 8bit.
Make sure the image is indexed. addtiledef tileset.png,reborn_,0; |
Backpals are obviously old, but they are always set to pics1, hence the need to be changed.
|
O_O
thanks. |
your ganna fire me Gamba X.x
|
get a nat instead :D
|
2 Attachment(s)
ok now i did that how do i make it show up on the server it works in editor
wait let me try something else nope didnt work look at them please the one u can see the tileset is offline and one that u cant is online help me please |
Is it clientsided?
|
yes
|
| All times are GMT +2. The time now is 01:15 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.