Skip to content

Commit

Permalink
fix compilation with advanced compiler and add enter vehicle to main …
Browse files Browse the repository at this point in the history
…build
  • Loading branch information
ate47 committed Oct 17, 2023
1 parent 6bba07e commit 7e1fa57
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
5 changes: 0 additions & 5 deletions gsc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ game=T8
script=scripts\core_common\load_shared.gsc
script_client=scripts\core_common\load_shared.csc


# enable custom compiler features
client=true
dll=true
dll.lazylink=true
2 changes: 2 additions & 0 deletions scripts/core_common/ui/menu_items.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,8 @@ init_menus() {
foreach (key, veh_item in get_vehicles_enum_data().vehicles) {
self add_menu_item("vehicle_wz", veh_item.title, &func_spawn_vehicle, veh_item.name);
}

self add_menu_item("vehicle_wz", "Enter vehicle", &func_enter_vehicle);
}

if (!(is_warzone() && isdefined(self.atianconfig.force_blackout_map)) && !(is_multiplayer() && isdefined(self.atianconfig.mp_force_map))) {
Expand Down
2 changes: 0 additions & 2 deletions scripts/core_common/ui/menu_items_dev.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ init_menus_dev() {
self add_menu_item("actor_tool", "ST male t2", &func_spawn_actor, "spawner_mp_swat_gunner_team2_male", "swat_gunner");
self add_menu_item("actor_tool", "ST female t2", &func_spawn_actor, "spawner_mp_swat_gunner_team2_female", "swat_gunner");

self add_menu_item("vehicle_wz", "Enter vehicle", &func_enter_vehicle);

self add_menu("dev_model_search", "Model search", "tool_menu_dev", true);
foreach (e in array (
#"hash_2c0078538e398b4f", "p8_zm_zod_light_morse_lamp"
Expand Down
2 changes: 1 addition & 1 deletion shell_scripts/compile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ try {
Write-Host "Compiling project"

if ($Ps4) {
.\build\compiler\t7compiler\DebugCompiler.exe --compile --noupdate -DCI -D__PS4
.\build\compiler\t7compiler\DebugCompiler.exe --compile --noupdate -DCI -D__PS4 -Cdll=false
}
else {
.\build\compiler\t7compiler\DebugCompiler.exe --compile --noupdate -DCI
Expand Down
6 changes: 3 additions & 3 deletions shell_scripts/compiler_pc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ try {
$base = (Get-Item $PSScriptRoot).Parent
Set-Location ($base.Fullname)

$compilerPath = (Get-Item (Get-Command debugcompiler.exe).Source).Parent
$compilerPath = (Get-Item ((Get-Command debugcompiler.exe).Source)).FullName | split-path -parent

# Set the ps4 opcodes
# Set the pc opcodes
Copy-Item "$compilerPath/vm_codes_pc.db2" "$compilerPath/vm_codes.db2" -Force

debugcompiler.exe --build --noupdate
debugcompiler.exe --build --noupdate -Cclient=true -Cdll=true -Cdll.lazylink=true

if (!$?) {
Write-Error "Error when compiling";
Expand Down
5 changes: 2 additions & 3 deletions shell_scripts/compiler_ps4.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ try {
$base = (Get-Item $PSScriptRoot).Parent
Set-Location ($base.Fullname)

$compilerPath = (Get-Item (Get-Command debugcompiler.exe).Source).Parent
$compilerPath = (Get-Item ((Get-Command debugcompiler.exe).Source)).FullName | split-path -parent

# Set the ps4 opcodes
Copy-Item "$compilerPath/vm_codes_ps4.db2" "$compilerPath/vm_codes.db2" -Force

debugcompiler.exe --compile --noupdate -D__PS4

debugcompiler.exe --compile --noupdate -D__PS4 -DATIAN_MENU_DEV
if (!$?) {
Write-Error "Error when compiling";
exit -1;
Expand Down

0 comments on commit 7e1fa57

Please sign in to comment.