This commit is contained in:
ineed bots 2024-03-20 12:57:08 -06:00
parent 26a5adae13
commit a9ea7acec3
9 changed files with 38 additions and 64 deletions

View File

@ -1,10 +1,10 @@
name: main
name: gsc-tool
on: [push]
jobs:
main-win:
name: Test on Windows
name: Compile on Windows
runs-on: windows-latest
steps:
@ -18,4 +18,4 @@ jobs:
- name: Run script
run: |
ci/main.bat
ci/gsc-tool.bat

16
.github/workflows/pregsc.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: pregsc
on: [push]
jobs:
main-win:
name: Run on Windows
runs-on: windows-latest
steps:
- name: Check out files
uses: actions/checkout@main
- name: Run script
run: |
ci/pregsc.bat

2
.gitignore vendored
View File

@ -4,5 +4,3 @@
logs/
demos/
missingasset.csv
*.exe
compiled/

View File

@ -130,6 +130,8 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
- apdonato - http://rsebots.blogspot.ca/
- Ability
- Salvation
- Xensik - https://github.com/xensik/gsc-tool
- KristofMorva - https://github.com/KristofMorva/preGSC
### Waypoint Creators
- FragsAreUs - https://github.com/FragsAreUs

6
ci/gsc-tool.bat Normal file
View File

@ -0,0 +1,6 @@
@echo off
xcopy /y .\ci\*.gscbin .\
rm .\scripts\mp\bots_adapter_piw5.gsc
gsc-tool.exe -m comp -g iw5 -s pc .\

View File

@ -1,6 +0,0 @@
@echo off
xcopy /y ci .
rm scripts\mp\bots_adapter_piw5.gsc
gsc-tool.exe -m comp -g iw5 -s pc .

BIN
ci/preGSC.exe Normal file

Binary file not shown.

11
ci/pregsc.bat Normal file
View File

@ -0,0 +1,11 @@
@echo off
pushd .\ci\
if not exist ".\source\" mkdir .\source\
if not exist ".\source\scripts\" mkdir .\source\scripts\
if not exist ".\source\maps\" mkdir .\source\maps\
xcopy /y /s /e ..\scripts\ .\source\scripts\
xcopy /y /s /e ..\maps\ .\source\maps\
preGSC.exe -noforeach -nopause

View File

@ -1,53 +0,0 @@
init()
{
level.bot_builtins["printconsole"] = ::do_printconsole;
level.bot_builtins["filewrite"] = ::do_filewrite;
level.bot_builtins["fileread"] = ::do_fileread;
level.bot_builtins["fileexists"] = ::do_fileexists;
level.bot_builtins["botaction"] = ::do_botaction;
level.bot_builtins["botstop"] = ::do_botstop;
level.bot_builtins["botmovement"] = ::do_botmovement;
level.bot_builtins["botmeleeparams"] = ::do_botmeleeparams;
}
do_printconsole( s )
{
println( s );
}
do_filewrite( file, contents, mode )
{
file = "scriptdata/" + file;
}
do_fileread( file )
{
file = "scriptdata/" + file;
return undefined;
}
do_fileexists( file )
{
file = "scriptdata/" + file;
return false;
}
do_botaction( action )
{
self botaction( action );
}
do_botstop()
{
self botstop();
}
do_botmovement( forward, right )
{
self botmovement( forward, right );
}
do_botmeleeparams( entNum, dist )
{
self botmeleeparams( entNum, dist );
}