| Mirage Source http://www.miragesource.net/forums/ |
|
| Converting maps.. http://www.miragesource.net/forums/viewtopic.php?f=201&t=842 |
Page 1 of 1 |
| Author: | Matt [ Thu Dec 14, 2006 1:32 am ] |
| Post subject: | Converting maps.. |
Is it possible to convert the client side maps to work with the server? |
|
| Author: | Misunderstood [ Thu Dec 14, 2006 1:39 am ] |
| Post subject: | |
Of course, theres already a sub in MS that does bascially that. |
|
| Author: | Matt [ Thu Dec 14, 2006 1:41 am ] |
| Post subject: | |
Well, how to I use that sub? I was mapping on my game, and for some reason, about 15 maps just, were no longer there. But I have them client side. So I need to convert them to work with the server, so I don't have to redo them. |
|
| Author: | Dragoons Master [ Thu Dec 14, 2006 1:50 am ] |
| Post subject: | |
If your Clients MapRec and your Servers MapRec is EXACLY the same, then its just copy paste. Else make a big loop ^^ |
|
| Author: | Matt [ Thu Dec 14, 2006 2:05 am ] |
| Post subject: | |
I tried that before, it didn't work.. [EDIT] I have something server side, that's not client side. So how do I go about converting the maps? |
|
| Author: | Lea [ Thu Dec 14, 2006 2:45 am ] |
| Post subject: | |
Load the map, then copy each data entry to the new UDT, then set the new entry to the default, save. |
|
| Author: | Matt [ Thu Dec 14, 2006 3:35 am ] |
| Post subject: | |
Um.. I dunno what you mean by that Dave. Lol. |
|
| Author: | Obsidian [ Thu Dec 14, 2006 10:06 am ] |
| Post subject: | |
I have a map converter app... i'm going home tomorrow because the semester is over for me, but try to catch me on GTalk tomorrow night. Basically what dave is saying is that you take the old UDT... for instance Data1 Data2 Data3 And you put that into the "OldMapRec" UDT, and then you put all of your current stuff into the MapRec UDT (both of these are in the converter)... e.g., Data1 Data2 Data3 Data4 Then, you would just simply do this Map(i).Data1 = OldMap(i).Data1 Map(i).Data2 = OldMap(i).Data2 Map(i).Data3 = OldMap(i).Data3 Map(i).Data4 = 0 4 would be zero, because it wouldn't have gotten a value from the previous maprec, because data4 never existed. but yeah, just get in touch with me tomorrow and i can send it your way. |
|
| Author: | Dragoons Master [ Thu Dec 14, 2006 1:49 pm ] |
| Post subject: | |
I posted a working source code that did exacly that. I'l try to find it here... Just a min. Oooh, yes, yes. I have it here. I'll upload it, just one more minute... Ok, here it is, Just reuploaded it to the net: MapConverter |
|
| Author: | Matt [ Thu Dec 14, 2006 3:24 pm ] |
| Post subject: | |
Well, it turns out that my maps are fine. The reason they disappeared, is because Sonire's computer went into hibernation, and for some reason, I couldn't get the maps or something. But he logged into the server when he got home, and all my maps are still there. However, I will keep a copy of your map converter for future issues, DM. Thanks everyone. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|