Mirage Source
Converting maps.. - Printable Version

+- Mirage Source (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: Converting maps.. (/showthread.php?tid=474)



Converting maps.. - Matt - 14-12-2006

Is it possible to convert the client side maps to work with the server?


- Misunderstood - 14-12-2006

Of course, theres already a sub in MS that does bascially that.


- Matt - 14-12-2006

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.


- Dragoons Master - 14-12-2006

If your Clients MapRec and your Servers MapRec is EXACLY the same, then its just copy paste. Else make a big loop ^^


- Matt - 14-12-2006

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?


- Matt - 14-12-2006

Um.. I dunno what you mean by that Dave. Lol.


- Obsidian - 14-12-2006

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.


- Dragoons Master - 14-12-2006

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


- Matt - 14-12-2006

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.