News | Forum | People | FAQ | Links | Search | Register | Log in
Random Map Loader
Over the years, I've accumulated hundreds of very high quality maps from this place. Now, it is becoming a nightmare to select a map to play, since there are so much to choose. The maps list in Quakespasm is very long and scrolling the whole list is painfull.

To solve this problem, it would be very usefull to have a small bsp file : random.bsp, that do just one thing : randomly select and load a map from a list of map names stored in a text file. That file could be located inside the default map directory (next to the random.bsp file), and could be edited by the player, using his/her favorite text editor.

So each time the player call the map random.bsp from the console, the engine then loads a random map from the favorite list.

Now, I am not a programmer, and I don't know if this idea could be done for Quake. I think it could be very usefull if it's doable.

So what do you think ? Anyone knows how to do this ?
First | Previous | Next | Last
Then Again 
I bet Preach could come up some krazy idea to make it work in vanilla progs.... 
Baker, What Is This ? LOL 
This looks like something from The Matrix. 
Download - Created in 2006. 

maybe that hardcoded entities list could be edited using an HexEditor ? 
Oh Also 
Do you need this to load different mods as well, or is this list of maps all for one mod (vanilla I assume) 
maybe that hardcoded entities list could be edited using an HexEditor ?

Now this is getting silly 
Even easier on MacOS:

In case you did not understand how it works, it randomises the map each time you access the file. So you stay within Quake and just load randommap again and again. 
Kinn :

for the moment, I'm not asking to load different mods. Default bsp maps from the id1/maps folder only would already be great (I have about 200 great maps in there).

If the list must be hardcoded, then HexEditing it could be the only choice left, without asking for a modification of the engine (Quakespasm).

Spirit :

while I'm a long time user of OS X, I'm really not familiar with that OS X stuff. So I really don't know how to use the ressources from your link. 
That Mod is pretty impressive ! The undergate hall is cool to move in. 
Spirit's solution is described in those posts he linked to in the Quakespasm thread. He posted an example command for Linux that will link a different (randomly chosen) bsp file to randommap.bsp each time something (like Quake) opens the file.

If you're on OS X then you'll need to figure out how to modify that Linux command like so that it uses the file-watching tools available on OS X (fswatch), instead of the Linux-specific stuff (inotifywait). 
Johnny Law 
It isn't obvious at all how to use Spirit's code. Where do you put that code ? 
Theoretically it should be trivial to add a new command to QS which would switch to a random entry from the filelist... but I'm looking at the QS source and I have no idea where to begin. 
Adding a command to QuakeSpasm that reads a textfile to randomly load a map would be ideal ! I think it could actually be awesome ! 
Not A Textfile. 
The list of maps. 
List Of All Maps ? 
As indicated by someone elsewhere on the forum, there are maps that aren't actually true maps (I don't know if this is true).

I think it would be preferable that the user define a list of **favorite** maps in a text file, and the engine could then read it to load a map.

It may be more reliable. 
My favorite map is b_shell1.bsp 
I am looking forward to b_shell1rmx 
sock already did it 
#25, #26, #27 ? 
Sock already did what ?

And what are b_shell1.bsp and b_shell1rmx ? 
This Thread Is Funny. 
Just Hook This Up To An Impulse And You're Good To Go 
void() random_map =
changelevel ("thefly");
You Mean The Fly From 1997 By Markus Klar? I Hear It's Good 
Indeed Sleepy 
you could also swap thefly for bailey. 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2023 John Fitzgibbons. All posts are copyright their respective authors.