My map into Engine test?
I thought I read somewhere that you can put your maps into the Engine Test. I tried putting my .level file into the maps folder, but that didn't seem to work. Now that probably means I answered my own question but, I would at least like the community to confirm this for me.
THaNks
THaNks
Comments
Boom. (Also make sure you put a player_start entity in your map)
No the creating server is hardcoded into the lua code. ;)
Just open up Main.lua
and add your map in on line 23, like so
line 19:
maps =
{
{ name = "Range #1", fileName = "ns2_dm1.level" },
{ name = "Range #2, fileName = "ns2_dm2.level" },
{ name = "My Map", fileName = "mymapname.level" },
}
<!--quoteo(post=1766145:date=Apr 11 2010, 10:41 PM:name=Psyke)--><div class='quotetop'>QUOTE (Psyke @ Apr 11 2010, 10:41 PM) <a href="index.php?act=findpost&pid=1766145"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->//line 19<!--QuoteEnd--></div><!--QuoteEEnd-->
:P
If we can get file io working we could get it loading our maps automatically.
If we can get file io working we could get it loading our maps automatically.<!--QuoteEnd--></div><!--QuoteEEnd-->
We can, but there are significant security risks for enabling it.
Mappers may now rejoice.
<!--quoteo(post=1765296:date=Apr 10 2010, 07:33 AM:name=devicenull)--><div class='quotetop'>QUOTE (devicenull @ Apr 10 2010, 07:33 AM) <a href="index.php?act=findpost&pid=1765296"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Download the code from here: <a href="http://github.com/Nayruden/ns2lua" target="_blank">http://github.com/Nayruden/ns2lua</a> and replace your existing lua directory with it. <b>Click the "Download Source" button to get a nice zip package</b><!--QuoteEnd--></div><!--QuoteEEnd-->
I cannot load my maps in the Engine Test, when I put the name of the map (map ns2_mymap) in the console, the game is crashed and closed.
What entities I need exactly, besides team_location and Player_Start? For now I just want to wander in my maps, I do not want to put other entities at this time than strictly necessary.
edit: btw, have you tried loading any other map, with success?
<b>edit: btw, have you tried loading any other map, with success?</b><!--QuoteEnd--></div><!--QuoteEEnd-->
Wow Braw... Do not know why, but all the maps were buged... I realize an entirely new small map and now it runs perfectly!
Thank you very much for your feedback!