mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
pregsc
This commit is contained in:
parent
26a5adae13
commit
a9ea7acec3
@ -1,10 +1,10 @@
|
|||||||
name: main
|
name: gsc-tool
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main-win:
|
main-win:
|
||||||
name: Test on Windows
|
name: Compile on Windows
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -18,4 +18,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Run script
|
- name: Run script
|
||||||
run: |
|
run: |
|
||||||
ci/main.bat
|
ci/gsc-tool.bat
|
16
.github/workflows/pregsc.yml
vendored
Normal file
16
.github/workflows/pregsc.yml
vendored
Normal 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
2
.gitignore
vendored
@ -4,5 +4,3 @@
|
|||||||
logs/
|
logs/
|
||||||
demos/
|
demos/
|
||||||
missingasset.csv
|
missingasset.csv
|
||||||
*.exe
|
|
||||||
compiled/
|
|
||||||
|
@ -130,6 +130,8 @@ You can find the ModDB release post [here](https://www.moddb.com/mods/bot-warfar
|
|||||||
- apdonato - http://rsebots.blogspot.ca/
|
- apdonato - http://rsebots.blogspot.ca/
|
||||||
- Ability
|
- Ability
|
||||||
- Salvation
|
- Salvation
|
||||||
|
- Xensik - https://github.com/xensik/gsc-tool
|
||||||
|
- KristofMorva - https://github.com/KristofMorva/preGSC
|
||||||
|
|
||||||
### Waypoint Creators
|
### Waypoint Creators
|
||||||
- FragsAreUs - https://github.com/FragsAreUs
|
- FragsAreUs - https://github.com/FragsAreUs
|
||||||
|
6
ci/gsc-tool.bat
Normal file
6
ci/gsc-tool.bat
Normal 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 .\
|
@ -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
BIN
ci/preGSC.exe
Normal file
Binary file not shown.
11
ci/pregsc.bat
Normal file
11
ci/pregsc.bat
Normal 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
|
@ -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 );
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user