How to use rapid? [esp. make-sdd]

How to use rapid? [esp. make-sdd]

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

How to use rapid? [esp. make-sdd]

Post by smoth »

So, I have uploaded 2 versions of a gundam prerelease both use the prerelease tag

I have a batch for the command:
cd rapid
rapid.exe make-sdd gundam:prerelease gundamPre.sdd
(yes I keep rapid in a sub directory)

Anyway, I have 2 issues.
1: the thing puts the sdd in the /mods/ directory.
2: it tells me gundamPre.sdd already exists and cannot be created.

How do I get rapid to download to /games/ and how do I get rapid to update the game file when I already have a version downloaded?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: How to use rapid? [esp. make-sdd]

Post by Tobi »

Unfortunately, both aren't possible right now without modifying the source code.

Good points though, I've added them to the issue tracker (though I don't know yet when I'll take some time to go through the issues...)
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: How to use rapid? [esp. make-sdd]

Post by jK »

Here absolute paths work fine, solves 1. (or is that Linux only?)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: How to use rapid? [esp. make-sdd]

Post by smoth »

is the reason my prerelease tagged version won't update because update ONLY works with latest?
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: How to use rapid? [esp. make-sdd]

Post by jK »

Call rapid.exe w/o any arguments, it tells you how to pin & upgrade `tags`.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: How to use rapid? [esp. make-sdd]

Post by Forboding Angel »

Why are you having it make an sdd?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: How to use rapid? [esp. make-sdd]

Post by zwzsg »

cd rapid
rapid.exe ...
When I do that it lacks tons of files and libs, so I have to do: rapid/rapid.exe ....
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: How to use rapid? [esp. make-sdd]

Post by smoth »

Forboding Angel wrote:Why are you having it make an sdd?
because I think the package format is fucking stupid. I like people being able to readily stea.. grab gundam's source code.
When I do that it lacks tons of files and libs, so I have to do: rapid/rapid.exe ....
why are you doing that? I don't think having rapid in a subdirectory is normal..
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: How to use rapid? [esp. make-sdd]

Post by Forboding Angel »

because spring install puts rapid in the subdir rapid.

All rapid commands should be:

rapid\rapid.exe <args>


The package format is excellent. You just aren't using it correctly.

If you want people to be able to get at the source, that's easy.

Code: Select all

TITLE Gundam Sauce Extractor
IF EXIST %CD%\games\gundamsauce.sdd (
rapid\rapid.exe clean-upgrade -y
cls
echo The source has already been unpacked. Deleting and rebuilding, please wait:
del /Q "%CD%\games\gundamsauce.sdd\*.*"
cls
rapid\rapid.exe make-sdd gundam:prerelease gundamsauce.sdd
cls
echo The sauce is ready for you to use!
pause
) else (
echo Building source, please wait:
rapid\rapid.exe make-sdd gundam:prerelease gundamsauce.sdd
cls
echo The sauce is ready for you to use!
)

start http://www.smoth.net/how-to-use-the-gundam-source
exit
^^ that should do what you need. Putting it in a menu would be pretty easy. Might wanna check that delete path command though. It might not be valid to delete it remotely (in other words the command line might need to be in that directory to delete it, in which case, that's a simple fix).
Post Reply

Return to “Engine”