Skip to content

Commit

Permalink
Fixed errors and added quick snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Oct 12, 2024
1 parent 35d5dbd commit 22a8dca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,9 @@ String hooks refere to names that the script look for in order to replace a Line
### Magicwords
- `$0`: Print version number provided by `--versionTag` parameter.
- `$1`: Print name of the installed package selected by `--packageVersion` parameter.

## Quick local build snippets

```pwsh
> python build.py sandbox -p "cScripts-4.5.21-RC2.zip" -pv "4.5.21-RC2" -v "2.7.19" -y
```
8 changes: 4 additions & 4 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ def setup_missions(temp_folder='', mission_json_data={}, count=0, use_color=Fals

if changes == 'loadScreen':
replace(file,
'loadScreen = "Data\MissionLogo.paa";',
'loadScreen = "Data\\MissionLogo.paa";',
'loadScreen = "{}";'.format(string))
continue

if changes == 'overviewPicture':
replace(file,
'overviewPicture = "Data\MissionLogo.paa";',
'overviewPicture = "Data\\MissionLogo.paa";',
'overviewPicture = "{}";'.format(string))
continue

Expand Down Expand Up @@ -383,8 +383,8 @@ def setup_missions(temp_folder='', mission_json_data={}, count=0, use_color=Fals

for func in list(reversed(string)):
replace(file,
'#include "cScripts\CfgFunctions.hpp"',
'#include "cScripts\CfgFunctions.hpp"\n {}'.format(func))
'#include "cScripts\\CfgFunctions.hpp"',
'#include "cScripts\\CfgFunctions.hpp"\n {}'.format(func))
continue

if changes == 'add':
Expand Down

0 comments on commit 22a8dca

Please sign in to comment.