PDA

View Full Version : [RELEASE] All-In-One Compiler Batch


ALBerT
1st March 2006, 22:03
I have decided to release my all-in-one batch file. This will save alot of effort in short, especially if you are a lazy person such as myself. The make-up isn't exactly complicated as you can see, but ggz :P

IT:

Compiles
Strips The Source
Changes file type
And Moves to required directory

Just open a notepad file and copy the code below, go to File>Save As> and save as a .bat file.

Not that if you are using your hack as a texture, it would be X:\PROGRA~1\REDSTO~1\RAVENS~1\textures. The short DOS file name is used. (X Being the hard disk that you have installed Raven Shield on)

Be sure to delete any current versions of your compiled hack before running the compiler.(Obviously)

Have fun

-AL



color 93
cd..
cd system
del yourhack.u
UCC.exe make
UCC.exe editor.stripsourcecommandlet Yourhack.u
ren Yourhack.u Yourhack.rsm
move YourCompiledhack.rsm C:\PROGRA~1\REDSTO~1\RAVENS~1\maps
pause


Greetz:

$T$
GloGG
Myself
Frikos
Kizzamp (i suppose)

KizZamP-
1st March 2006, 22:05
i suppose ? wow hax spotted...
mmm never saw ren and move hehe

$T$
1st March 2006, 22:07
Ah the lazy mans batch, nice work alby. By the way am i the only one that like the word batch? it makes me feel warm and fuzzy ;)

C-X
2nd March 2006, 00:04
Man i had no idea u were THAT lazy lol.


By the way am i the only one that like the word batch? it makes me feel warm and fuzzy
i think it sounds evil =´/

frikos
2nd March 2006, 00:43
ooh, you're nearby as lazy as me, but if you're really lazy you'll make one compiler for any hack ^^

so i edited your code a bit... i included the ideas i wanted to use as a simple "hack installer" for the new windowhack version ^^
if its working correctly it will dynamicly get the name of you're package/folder and the installed rvs path from the registry, because not everyone is using the default path :eek:

it would be a good test, because it will use the full path, e.g. C:\Games\Ravenshield\
i don't know if it's working when the path is C:\Program Files\... because of the space :x

it worked for me ;)


echo off
color 0A

TITLE Dynamic Compiler

cd > rvs.txt

For /F "tokens=1" %%i in ('Find /i "\" rvs.txt') do @set mypackage=%%~ni

REG QUERY "HKLM\SOFTWARE\Red Storm Entertainment\RAVENSHIELD" /v InstalledPath > rvs.txt

For /F "tokens=3" %%i in ('Find /i ":\" rvs.txt') Do @Set mypath=%%i

DEL rvs.txt

ECHO.
ECHO =======================================
ECHO RVS found at: %mypath%
ECHO =======================================
ECHO Using Package: %mypackage%
ECHO =======================================
ECHO.

cd ..\system
del %mypackage%.u

UCC.exe make Silent NoBind

copy %mypackage%.u %mypath%\maps\%mypackage%.rsm

ECHO.
ECHO =======================================
ECHO !FINISCHED! HAPPY HACKING!
ECHO =======================================
ECHO.

pause

C-X
2nd March 2006, 00:45
LOL nice compiler frikos :P

ALBerT
2nd March 2006, 09:20
haha had to go one better !! wow you ARE the official definition of lazy,

i couldnt get it to move them, without using the short DOS names that I obtained by going to the old COMMAND, and using the DIR command with the flag /X :D

KizZamP-
2nd March 2006, 09:36
lawl frikos did some research on goog0l,nice :)

GLoGG
2nd March 2006, 13:01
i luv the color pink on it though ^^ nice job alberrr.

omg kizzamp is an mpc subscriber dont dooo it!!

Virtuosofriend
2nd March 2006, 13:37
haha had to go one better !! wow you ARE the official definition of lazythat's because you havent seen luck777jojo's daily routine ;).
Nice job on it Alb,mind post it on AR as well ;) kthx.

ALBerT
2nd March 2006, 17:26
that's because you havent seen luck777jojo's daily routine ;).
Nice job on it Alb,mind post it on AR as well ;) kthx.

lol.. OK ill go post it now, not really active there though

snoopdogg
2nd March 2006, 19:44
ok im a nub, i have no idea what any of this means, can someone explain to me if this is a hack or not?

KizZamP-
2nd March 2006, 19:58
no this isn't a hack,this is a "compiler.bat" - it's an essential when you want to compile your own hack.

JohnDeere6996
3rd March 2006, 17:45
You dont need this albert:

del yourhack.rsm

if you move the hack to the game folder. the del yourhack.rsm wont find anything to delete.

ALBerT
3rd March 2006, 17:54
Yeah your right ;)

JohnDeere6996
3rd March 2006, 22:32
Oh and the same applies to the del yourhack.u because if you rename it to yourhack.rsm there will be no yourhack.u to delete next time you run the batch file.

But great idea makes it faster to change something. this way i can change something between rounds then close the game run the batch file and get back in the game in less than a min. sweet. thanks

frikos
4th March 2006, 00:39
but the DEL command won't abort the process if the path isn't correct, and it's not really necessary

but if you want you could write this

IF EXIST yourhack.u DEL yourhack.u :P