News:

Come Chat with us live! Learn how HERE!

Main Menu

Is there a command...

Started by Pazuzu, August 18, 2010, 04:42:35 AM

Pazuzu

...to load a certain mod instead of using the menu? (ie "/mod blah" instead of "Mods>Blah")

Quote from: Tremhelper on September 05, 2011, 09:14:46 PM
ok, can you give me the tool thingy app that can code?

F50

Not that I know of. Loading a mod actually results in restarting much of tremulous itself, which mod you use is determined by a write protected variable /fs_game. You may be able to request a change to that variable and then use another command to re-load the VMs, but I don't know what that is.
"Any sufficiently advanced stupidity is indistinguishable from malice." -- Grey's Law


God, maker of the world

Quote from: F50 on August 18, 2010, 06:16:53 AMwhich mod you use is determined by a write protected variable /fs_game

When mapping, I use a batch file to compile the map and run Trem with the map afterwards. The line which starts Trem includes the parameter fs_game. So, maybe you can just give the mod directory name to that parameter instead of the current value "base". This is the (definitely working) command of my compile batch:

"C:\Program Files\Tremulous\tremulous.exe" +set fs_basepath "C:\Program Files\Tremulous" +set sv_pure 0 +set fs_basegame base +set fs_game base +devmap "somenewmap"

This is a modification of the command that you could try to launch Trem with the mod of your choice:

"C:\Program Files\Tremulous\tremulous.exe" +set fs_basepath "C:\Program Files\Tremulous" +set fs_game nameofmoddirectory

I can't try it right now, so it's just a guess.

Pazuzu

Thanks to both of you. What I wanted to do was play back a demo I shot from the ZvH mod and record a video, from the command line. Setting fs_game worked nicely for that, in the way God said. I'd say this thread can be closed.

Quote from: Tremhelper on September 05, 2011, 09:14:46 PM
ok, can you give me the tool thingy app that can code?