Mirage Source http://web.miragesource.net/forums/ |
|
New Map Layers http://web.miragesource.net/forums/viewtopic.php?f=201&t=3159 |
Page 1 of 1 |
Author: | Stomach Pulser [ Thu Dec 13, 2007 2:51 am ] |
Post subject: | New Map Layers |
Hello, I followed Asrrin29's Adding New Map Layers Tutorial http://www.sylphonline.com/enginefiles/Mirage_Tutorial_Backup/Temporary%20Archive%20(Read%20Only)/Add%20More%20Layers.html and after completing it, I went into mirage and decided to test it out. It worked whilst I was in the map editor, but, once I pressed send, the map got randomized with random attributes and tiles. It is random every time I press send. Any help? |
Author: | Lea [ Thu Dec 13, 2007 2:51 am ] |
Post subject: | Re: New Map Layers |
server and client side TileRecs need to be the same. |
Author: | Matt [ Thu Dec 13, 2007 2:52 am ] |
Post subject: | Re: New Map Layers |
Also delete all your maps. Or write a converter to convert to the new rec. |
Author: | Stomach Pulser [ Thu Dec 13, 2007 3:01 am ] |
Post subject: | Re: New Map Layers |
Dave wrote: server and client side TileRecs need to be the same. They are Perfekt wrote: Also delete all your maps. Or write a converter to convert to the new rec. I didn't have any maps, but I deleted map one anyways. But, it is still being randomized, but it only deletes anything I have done and randomizes it. |
Author: | Matt [ Thu Dec 13, 2007 3:42 am ] |
Post subject: | Re: New Map Layers |
Check your save packets. Seems they're twisted a bit. |
Author: | Stomach Pulser [ Thu Dec 13, 2007 4:01 am ] |
Post subject: | Re: New Map Layers |
Thank you, for some reason, I added this code into the MapData Packet, but it didn't save that, so I only had the old code. I fixed the error, and it now works perfectly! Code: For y = 0 To MAX_MAPY For x = 0 To MAX_MAPX SaveMap.Tile(x, y).Ground = Val(Parse(n)) SaveMap.Tile(x, y).Mask = Val(Parse(n + 1)) SaveMap.Tile(x, y).Anim = Val(Parse(n + 2)) SaveMap.Tile(x, y).Mask2 = Val(Parse(n + 3)) SaveMap.Tile(x, y).M2Anim = Val(Parse(n + 4)) SaveMap.Tile(x, y).Fringe = Val(Parse(n + 5)) SaveMap.Tile(x, y).FAnim = Val(Parse(n + 6)) SaveMap.Tile(x, y).Fringe2 = Val(Parse(n + 7)) SaveMap.Tile(x, y).F2Anim = Val(Parse(n + 8)) SaveMap.Tile(x, y).Type = Val(Parse(n + 9)) SaveMap.Tile(x, y).Data1 = Val(Parse(n + 10)) SaveMap.Tile(x, y).Data2 = Val(Parse(n + 11)) SaveMap.Tile(x, y).Data3 = Val(Parse(n + 12)) n = n + 13 Next x Next y Thanks alot! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |