| Mirage Source http://www.miragesource.net/forums/ |
|
| Custom Map Sizes. http://www.miragesource.net/forums/viewtopic.php?f=201&t=4918 |
Page 1 of 2 |
| Author: | wisefire [ Sat Jan 03, 2009 3:49 am ] |
| Post subject: | Custom Map Sizes. |
Anyone have an idea on how I should go about this? All I need is a simple start and I'm sure I could get it done. Thanks. |
|
| Author: | Rian [ Sat Jan 03, 2009 4:47 am ] |
| Post subject: | Re: Custom Map Sizes. |
MAX_MAPX and MAX_MAPY, make sure the picScreen is always evenly divisible by 32. |
|
| Author: | wisefire [ Sat Jan 03, 2009 7:24 am ] |
| Post subject: | Re: Custom Map Sizes. |
Rian wrote: MAX_MAPX and MAX_MAPY, make sure the picScreen is always evenly divisible by 32. Lol, No No, I ment like, the vairables saved in the Maps Data file. So any maps X and Y can be adjusted. |
|
| Author: | GIAKEN [ Sat Jan 03, 2009 7:27 am ] |
| Post subject: | Re: Custom Map Sizes. |
Take a look at Robin's Essence's source. |
|
| Author: | wisefire [ Sat Jan 03, 2009 8:16 am ] |
| Post subject: | Re: Custom Map Sizes. |
GIAKEN wrote: Take a look at Robin's Essence's source. I believe it's Direct X 8 is it not? Would it be worth looking at? I'm using 3.0.3 of Mirage. |
|
| Author: | Matt [ Sat Jan 03, 2009 1:24 pm ] |
| Post subject: | Re: Custom Map Sizes. |
You really should use MS4 if you're starting fresh. And I'd look at Robin's code. It's drawn with DirectX8, but I'm sure you can get the jist of how it all works. |
|
| Author: | wisefire [ Sat Jan 03, 2009 6:09 pm ] |
| Post subject: | Re: Custom Map Sizes. |
Matt wrote: You really should use MS4 if you're starting fresh. And I'd look at Robin's code. It's drawn with DirectX8, but I'm sure you can get the jist of how it all works. I've been working on my game for about a year or two now, I'm not restarting with MS4. Oh, and I'll be sure to check out Essence. |
|
| Author: | Lea [ Sun Jan 04, 2009 3:18 pm ] |
| Post subject: | Re: Custom Map Sizes. |
You need to include the mapx and mapy sizes in the packets. Then you need to redim the map array to that size, and change all map processing code to handle different size maps (it might mostly be ok already) And of course, a way to display them and a way to edit them |
|
| Author: | wisefire [ Sun Jan 25, 2009 5:26 am ] |
| Post subject: | Re: Custom Map Sizes. |
So, everything went okay, Untill now. The maps get created, then when they load I get RTE 7 Out of Memory, The error referring to the following line of code; Code: ReDim Map(i).Tile(0 To Map(i).x, 0 To Map(i).y) As TileRec Now when I hover over map(i).x and map(i).y, I see the following Code: map(i).x = 538976288 and Code: map(i).y = 53897628 Now in clear map, which is called in the initServer sub, map(i).x and .y each = 5. Any Ideas? |
|
| Author: | Lea [ Sun Jan 25, 2009 5:53 am ] |
| Post subject: | Re: Custom Map Sizes. |
how big is a tile (in bytes)? what is your map x? what is your map y? mapx*mapy*tilesize = memsize; memory in your computer = maxmem; if memsize > maxmen then FAIL call backupplan else wewt end if sub backupplan: find a way to optimize your maps, load into memory only what is displayed. end sub |
|
| Author: | wisefire [ Sun Jan 25, 2009 11:10 pm ] |
| Post subject: | Re: Custom Map Sizes. |
Lea wrote: how big is a tile (in bytes)? what is your map x? what is your map y? mapx*mapy*tilesize = memsize; memory in your computer = maxmem; if memsize > maxmen then FAIL call backupplan else wewt end if sub backupplan: find a way to optimize your maps, load into memory only what is displayed. end sub "how big is a tile (in bytes)" - I find this kind of information were? |
|
| Author: | Lea [ Mon Jan 26, 2009 1:40 am ] |
| Post subject: | Re: Custom Map Sizes. |
TileRec |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|