I would like to create randomized levels in my game, but unfortunetely I havent found a way to build them during runtime yet. I tried to use wwmp2wmb, but unfortunetely it pops up a dialog-box and waits for confimation after the create process.
Any ideas?
Re: Build levels via command line
[Re: Zothen]
#46696 05/26/0520:2705/26/0520:27
This shouldn't be a problem...you should already be able to program ent_create and ent_removes on the fly. More information about your issues is needed.
What I need to do is to create labyrinth-like geometry during runtime. For that, I want to use 3D-segments like rooms, stairs, corridors and so on. The important thing is that these segments arent entities, but geometry.
My idea was to use a DLL to create random WMP files and convert them to WMB with wwmp2wmb.exe, but like I said, its useless as long as theres always a confirmation dialog popping up.
Re: Build levels via command line
[Re: Zothen]
#46698 05/27/0506:3805/27/0506:38
Entities are going to be added too, randomly, but the problem is the geometry. Don't you got any ideas on how to randomize geometry? I am completely lost in this matter.
Re: Build levels via command line
[Re: Zothen]
#46700 05/31/0501:1905/31/0501:19
creating wmp in a dll-> not so difficult because wmp are text files not binary
using free wed to compile this levels in runtime -> interesting... but possible? Conitec says this free compiler only lets modify wmps of the project generated by the pro version, furthermore there the problem with the time that this takes (even in basic levels), and forget big levels... about the Dialog... it seems conitec must to add a "-silent" command line parameter.
But maybe they'll say Why don't create your maze of simple cube predef and load with create_ent?
A "-silent" parameter would be great. The levels dont have to be that big, but it would be interesting to know how long the compiler needs to build a level, lets say, the size of a large quake map.
Can whole rooms be entities? Wouldnt it decrease performance dramatically to build a level out of entities?
Re: Build levels via command line
[Re: Zothen]
#46702 05/31/0507:4505/31/0507:45
You can get rid of the confirmation by appending "-close" to the wwmp2wmb command line. The map compiler expects $$M files by the way, not WMPs. Just look at one of the $$M (or do a forum search) to figure out the format.