![]() |
Map Editor - Byte Arrays :-( - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Map Editor - Byte Arrays :-( (/showthread.php?tid=401) |
Map Editor - Byte Arrays :-( - Obsidian - 04-11-2006 Alright, again with the stupid byte array problems. when i send a map to the server, it doesn't save. i did an aLen(Getplayermap(myindex)) on both (with the index change on the server), and the client outputs 64 while the server outputs 60 i believe that is the problem, but i don't know what could be causing it... all of the recs match up. :evil: anyone have any ideas? - Misunderstood - 04-11-2006 How would any of us be able to tell what you did wrong with what you provided unless we were psychic? Gotta say more... - Obsidian - 04-11-2006 erm... alright. what exactly are you looking for? i mean it sends the entire rec from the client to the server, the client sends 64, and the server picks up 60. here's the tile and maprec for the client, and then the sub that sends the data to the server. Code: Type TileRec Here's the stuff from the server: Code: Type TileRec - Misunderstood - 04-11-2006 I don't know...but its not like you're saying anything. Maybe how its sent and received...because thats the code you're having problems with... - Obsidian - 04-11-2006 updated that post, maybe that can help? - Misunderstood - 04-11-2006 Um...you use Len instead of aLen...I dunno if that makes a difference. I assume the ByteLen variable is also 60? Maybe its a problem in your handleData...before the HandleMapData gets called. - Obsidian - 05-11-2006 Gah, now when i try to send the map, it crashes the VB6 that's running the server... what the hell :? Client Send Code Code: Public Sub SendMap() Server Receive Code Code: Private Sub HandleMapData(ByVal Index As Long, ByVal StartAddr As Long, ByVal ByteLen As Long, ByVal ExtraVar As Long) Those were straight from the MS code that verrigan converted as an example or whatever. But it just brings up that stupid microsoft "error report" screen or whatever. - Spodi - 05-11-2006 Watch out when you use CopyMemory, you'll break stuff fast if you dont use it right. - Obsidian - 05-11-2006 okay that's what i thought. hmmm i'm going to try to play around a bit more with that then |