Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   addtiledef problem (https://forums.graalonline.com/forums/showthread.php?t=77139)

Horrified 10-12-2007 12:05 AM

addtiledef problem
 
Anyone know why this doesn't load the tiles?

It's correct to my knowledge...but it won't load the tiles. I made sure they were in Graal/Levels/Tiles, and they were. But it won't load. Not really sure what to make of it.

NPC Code:
addtiledef relic_tileset1.png,#L,1;


cyan3 10-12-2007 12:27 AM

Try this.

PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef relic_tileset1.png,#L,1;



Horrified 10-12-2007 12:32 AM

Quote:

Originally Posted by cyan3 (Post 1352447)
Try this.

PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef relic_tileset1.png,#L,1;



Doesn't seem to work either.

Perhaps someone else could try on there own editor to see if maybe it's just mine ****ing up?

cyan3 10-12-2007 12:36 AM

Quote:

Originally Posted by Horrified (Post 1352448)
Doesn't seem to work either.

Perhaps someone else could try on there own editor to see if maybe it's just mine ****ing up?

I just used this and it load's Pisco2 with no problems.
PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef picso2.png,,0;


I also used another tileset and it works fine also.

PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef revolutions_tileset_new.png,,0;



Horrified 10-12-2007 12:40 AM

Quote:

Originally Posted by cyan3 (Post 1352450)
I just used this and it load's Pisco2 with no problems.
PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef picso2.png,,0;


I also used another tileset and it works fine also.

PHP Code:

//#CLIENTSIDE
if (created) {
removetiledefs;
addtiledef revolutions_tileset_new.png,,0;



those are type "0" though.

Might be a problem with type "1", so try the tileset I gave you (relic's)?

cyan3 10-12-2007 12:43 AM

1 Attachment(s)
Quote:

Originally Posted by Horrified (Post 1352452)
those are type "0" though.

Might be a problem with type "1", so try the tileset I gave you (relic's)?

It works with no problems.

Horrified 10-12-2007 12:44 AM

Quote:

Originally Posted by cyan3 (Post 1352453)
It works with no problems.

Hmm, definitely my client then...

I'll try re-downloading it and then try.

cyan3 10-12-2007 12:45 AM

Quote:

Originally Posted by Horrified (Post 1352454)
Hmm, definitely my client then...

I'll try re-downloading it and then try.

I hope you get it working soon :)

Horrified 10-12-2007 12:47 AM

Quote:

Originally Posted by cyan3 (Post 1352455)
I hope you get it working soon :)

Yeah, re-downloaded it. It's still not working.

Let me try a different computer, it may just be screwed.

Edit: It only didn't work on that computer for some odd reason.

Thank you very much for helping me though, cyan3.

Tigairius 10-12-2007 04:19 AM

If the tileset is over 256KB (correct me if I'm wrong), you can't load it in editor. It also has to be an 8-bit png.

Crow 10-12-2007 11:53 AM

Theres no limitation in the editor. Has to be 8bit, and you shouldnt leave the second parameter blank.

Tigairius 10-12-2007 02:59 PM

Quote:

Originally Posted by Crow (Post 1352503)
Theres no limitation in the editor. -- and you shouldnt leave the second parameter blank.

Yes there is a limitation.

Leaving the second parameter blank doesn't really matter.

Angel_Light 10-12-2007 06:17 PM

leaving the 2nd parameter blank in GS1 doesn't matter actually talking compiling speed it's faster I believe. Also Tig I tested the limit cause I never heard of it. Seems to not apply to my editor I loaded a tiledef that was 312KB 8bits

Tigairius 10-12-2007 06:57 PM

Quote:

Originally Posted by Angel_Light (Post 1352533)
312KB 8bits

It might be a larger limit then.

Angel_Light 10-12-2007 08:42 PM

Quote:

Originally Posted by Tigairius (Post 1352543)
It might be a larger limit then.

more likely. :P

Malinko 10-12-2007 09:36 PM

Tigairius is correct; it has to be an 8-bit image. I don't think there is a size limit, but to be real, how big could an image be if it's an 8-bit png file? Around 500kb, plus or minus a few kb?

Try this: open your Graal folder, then the levels folder, then file the folder called "tiledefs;" inside the folder, there will be text files. Find the text file "tiledefsOffline.txt" and delete it. You can safely delete all the text files in there if you wish, they will re-appear/re-download once you visit the playerworld again, but if you want to be specific for the editor, delete tiledefsOffline.txt and then open the level you want with the addtiledef script, which should load the tileset.


All times are GMT +2. The time now is 03:33 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.