![]() |
A more soild mapping function
I can never get the map making thing to use the textfile I want! Make it so that when you hit 'M' in the editor that you can browse to chose the file...
Unless I am doing something wrong... If that's the case, someone please tell me and I'll delete the thread (if I still can by then.) |
Making a map should be more automatic. You browse, select the folder you want. And then all the levels in are are done. BAM. A map is made. Incluiding a map.txt....Why doesn't that work? -_-
|
Quote:
|
If you're talking different map's for different levels, just make an NPC that uses the level name. If you have a common naming scheme like "overworld-0,1.graal" set up the npc to set the map for all levels begining with "overworld" to overworld.txt or gmap or w/ever. If your working offline, you could make it a toweapons NPC.
Thats the way I've always done it, but then again, this was before the level generator or the nw level format, I'm sure a lot has changed. |
Quote:
NPC Code: And the text file says this: Quote:
EDIT: It seems to be working now... I don't know what I did... Perhpas the .txt was in the wrong directory... Though I still believe that you should be able to choose the .txt file from a browser window, it would make this a lot less frustrating... |
I ment you could make an offline system script like this. This method checks the current level's filename to set the approiate map automaticailly, instead of having a bunch of setmap NPCs inside the levels, this method works better and is less buggy for users in my experience, but I haven't tried anything like it with an NPC server so I wouldn't know if it still works.
NPC Code: EDIT: The levelnames in this case are "log-x,y.graal". e.g. "log-0,2.graal" I also use this method for other things like assigning MIDI files to certain levels. It's better to have your scripting centralized. Kigan :) |
Quote:
|
Wow, I must of been tired, I totally read that wrong last night :) I didn't even know the editor had a map feature.
|
Quote:
Just a side note i also probably made a small error: Please dont make more timeouts than neccesary (I dont realy care if you do but its best to reduce that ammount make something more along the lines of this) Mainly be because you only need to check the level name when a player enters the level. This is in all cases although 50 weapon npcs with .05 timeout scripts doesnt lag the server it does lag on older client systems. NPC Code: NPC Code: And on subject yes it would be nice to have the editor ask for the map text file name when making a map, or maybe it and many other things could be in a seperate developer program? like tiledat editing, dungeon generator, level generator, terrain editor , and any other spiffy stuff put in one nice development program :) Especialy if the new Remote controls online level editing and offline wont be used too much or at all that would be a nice prog to have. Gnight im cant see my eykborad |
| All times are GMT +2. The time now is 11:52 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.