![]() |
Levels to gmaps
Okay, basically, I made DR without the use of the level generator. Not, on gs2, it worked fine as a 'gmap' however, on V4, it doesn't work. It's also messed up the time scripts which use 'onmap'. So basicall, I'm asking if there is any way to convert these levels to a gmap?
|
They're already a GMAP. All you need to make is the GMAP file. Simply copy/paste the levels in the order that they're linked and the width/height of the levels.
|
Quote:
|
Quote:
|
x_X nope. Then again the outsides have changed a bit since I first made the levels txt file, and the height and width have probably changed as well. x_X is there an easier way other than walking around the server and figuring out how wide/tall it is, or is there some way I can generate a txt file and map. (M in editor never worked right x_X) (list index out of bounds is the most recent complaint)
|
Quote:
Unrelated responce probably, I dont really do gmaps, Sephiroth is the one who made our maps. |
Quote:
DR's a little understaffed, the old version of a Gmap was easy, but for v4, it hasn't worked x_x |
for sanstrata classic, of course 5 years ago we saved them all as .graal files.
well, we resaved them all as .nw files, but then all the ow level links were not from the 0 to 64 on the edges, they were like from 1 to 63 on some places. so, to make it faster, I used levelgen to make a blank level set with the same width and height as the sanstrata map. Then I used my hosted website and uploaded the old converted .nw files and the blank levle set, and wrote a program in perl to read the level definition from the old levels (using the old bigmap.txt) tile definitions, since .nw can be read as a text file, and then overwrote the blank grass with the level set with the correct tile definitions. Thus all that was left to do was to recreate the warps to the insides of the houses and change all the house inside to ow warps to be to the right file name, as the x and y are the same. at least, that was the easiest way to do it that i could think of ... |
Quote:
Pretty cool though. Still have that program somewhere? |
hm i forgot where i posted it. and im sure theres probably an easier way. anyways thats the algorithm ... so now u can use c++ or basic or something to do it
|
Any tips on how to write it (basics, I plan to do it in C++)
|
You could ofcourse bother to copy them from map to map in level editor. I did this for N-pulse a while ago (not a huge overworld) anyhow this will hardly cost you a few hours. Ducati also did it (with a way bigger OW) anyhow just try it...
And as for GMAP questions.... there are tons of FAQ/Walktroughs and how-to posts/threads on these forums & in the Graal Bible ;) You might even want to try and use Rick's GMAP naming system... |
You want to re-name the level files to something else along with links and then make those into a GMAP file?
Stefan has a program for that somewhere, of course, if this is what is wanted to do. |
Quote:
and it would take MUCh more than a few hours to convert DR by hand, it's a huge OW with a lot of links on it. |
And wasn't there a loadfullmap for the server options before? (We have a new overworld, but it's not going to replace the currentone for a LONG time, so we need to fix the current one)
|
this is the perl code
the level list names are at the top i didn't write it for public use, but you should be able to get the algorithm from it PHP Code:
|
Quote:
One question before I can assist with that though. So for example, let's have a 2x2 overworld map. "darkrival_town1-0.nw","darkrival_town1-1.nw" "darkrival_forest1-0.nw","darkrival_forest1-1.nw" Then it's wished to convert those levels into a GMAP. "dr_a01.nw","dr_b01.nw" "dr_a02.nw","dr_b02.nw" Of course, this can be optimized to create a GMAP file and have it loaded on Dark Rival. GRMAP001 WIDTH 2 HEIGHT 2 MAPIMG dr_bigmap.png MINIMAPIMG dr_minimap.png LEVELNAMES "dr_a01.nw","dr_b01.nw" "dr_a02.nw","dr_b02.nw" LEVELNAMESEND Then can be saved as dr.gmap in Notepad or some word editor. Though, this is what is wanted, right? Oh, and note, it will change the links within the level, so don't need to stress out about that, but might have to change links to "inside" levels. Of course, the first example I provided "darkrival_town1-0.nw","darkrival_town1-1.nw" "darkrival_forest1-0.nw","darkrival_forest1-1.nw" can be converted into a GMAP. I guess it depends on what is wished to do, from personal peference. You can attach the current map file and I'm sure I or someone else here will convert it into a GMAP file and attach it on the forums, then it can be learned how to do. |
I've tried putting the old levels txt file in gmap format, it didn't work.
|
Quote:
|
If the PEARL doesn't function, then I would attach the GMAP file to a post, I'm sure there was some error made, because it sure does work.
|
Quote:
|
With Dark Rivals old design, a program wouldn't work. I'm going to have to do it by hand. x_x Unless V4 accepts old maps, this is going to take a while x_x
|
Okay, what I did was make a gmap with the level editor that was large enough to fit the old OW. Then I replaced the levels in the gmap file with the ones from the old gmap. I press M in editor, and it goes through it fine, however, the map image it generates is messed up, it cannot be opened, and it showes no image. I don't think I did anything wrong. The map is 25x37 levels, could it's size be a problem?
|
1 Attachment(s)
Our gmap produces images the one below, and never makes a map image. What's wrong (support center is down, btw).
It's 25 by 37 levels. |
As I said before, post the old map, which can be converted into a GMAP.
We can't solve a problem unless we see what is going on. I'm guessing breaks are in the wrong place, because it shouldn't do that. To answer the problem about the map image, v4 does not support that right now. Stefan said it could be added soon. Of course, walking around the GMAP, and press M in game will load the parts of the map that were visited. |
I'd post the gmap I'm trying to use, but it's too long. x_X
|
Quote:
I'm sure the moderators will not mind uploading it to an external host, because it is for GraalOnline development. |
...it's too big to attach as a txt file?
|
Quote:
|
Quote:
What did you think I meant? |
| All times are GMT +2. The time now is 09:16 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.