Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Strange tile array problem (https://forums.graalonline.com/forums/showthread.php?t=44137)

GrowlZ1010 04-09-2003 10:55 PM

Strange tile array problem
 
Warning: long, detail-packed post

I've been working on a hi-speed transit system recently. Despite all the safeguards I've added into it as I go along, I notice that every so often (it's completely random, and doesn't seem to have anything to do with the speed of the vehicle) - this mysterious problem seems to occur.

The first sign of trouble is always small posts and corrupted bushes flashing up across the landscape.
http://members.aol.com/ajfaithfull/error1.png

My first thought was that the tiledefs were being edited (despite the fact that no script I'm operating at this point has even one addtiledef command), so I opened up the tiledefsOffline.txt file and, sure enough, it contained corrupted entries. So I took those out, added in entries I knew worked, and made the file read-only. This has lowered the frequency of the problem, but it still occurs.

When you stop using the transit system and go back to normal movement, the tile array also seems to be weirded. You'll notice that in the screenshot below the character is sitting on deep water.
http://members.aol.com/ajfaithfull/error2.png

No matter how corrupted the level appears, the editor shows no adverse effects whatsoever. Below is what the editor makes of the above situation.
http://members.aol.com/ajfaithfull/error3.png

At this point, I began to think that Graal wasn't correctly reading its tiles, and was confusing one tile type with another. So I made a NPC (which are completely unaffected by this glitch) that would give me the tile type of whatever location the mouse was over, thinking Graal would show the tile type that should be in that position. It didn't. It showed the type of the corrupted tile as if it was supposed to be there. Even the tiles like the water-seat showed up as water, despite the fact they were acting as chairs.
http://members.aol.com/ajfaithfull/error4.png

The above stage - Graal seeing these corrupted tiles as part of the landscape - may make some of you think that one of my scripts is inadvertently calling some kind of board[x,y] command and updating the tiles for the level. The only thing that's using this array at this point is the tile identifier utility, and that can only read tile types, not edit them. So it's not that.

So, to summarize, something which I haven't coded and which doesn't seem to be present in any of the levels I'm using is adding random tiles to all Graal levels, redefining which tiles do what (I didn't think this was possible), and attempting to write junk to my tiledefs file. Help?

Falados 04-09-2003 11:04 PM

If you are using levels with the .graal extension, I suggestion to switch to .nw other than that, I have no clue whats wrong.

Admins 04-10-2003 04:45 PM

Does that problem happen with v2.18 only or with older versions (v2.17) too?

Neoreno 04-10-2003 06:09 PM

Quote:

Originally posted by Stefan
Does that problem happen with v2.18 only or with older versions (v2.17) too?
It happened almost constantly with me on this version and older versions too. I think it may have something to do with the file manager, because the levels out of there only proved to be problematic.

GrowlZ1010 04-10-2003 09:18 PM

Quote:

Originally posted by Stefan
Does that problem happen with v2.18 only or with older versions (v2.17) too?
I haven't got 2.17 handy, so I can't check, but I seem to remember a similar error happening on another transportation thing I tried a while ago. The tiles were somewhat corrupted, but not to the same extent as this.

Spark910 04-15-2003 11:37 AM

Its happened for about 7 versions now. It started off not too bad, as you could clear the tiledefs and it fixed for a while. But now its got worse, it totaly interfears with the development of levels on graal. ANd it also now ive noticed, it sometimes does that online, so you cant play correctly.

You need to fix this bug soon!

I think its an: addtiledef2 error, although im not 100% sure on that!


All times are GMT +2. The time now is 10:31 AM.

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