Syrian Warfare

Syrian Warfare

檢視統計資料:
Dr. Banker 2021 年 9 月 28 日 下午 4:47
Cheat Console utils.lua Link
This is a file I downloaded from a link A Perfectly normal Tower provided in several discussion logs. I only made one change, adding the Lebanese Fighters as a unit that can be spawned. (Added a few more units Jan 28)

https://drive.google.com/file/d/1cjaahNR4qn5kIopVSikEMkNx4oNDZM6O/view?usp=sharing

Install the ability to use these console commands by dropping the utils.lua file in the "console" folder of the game directory.


IF THERE IS NOT A "CONSOLE" FOLDER, CREATE ONE

My file path with the folder included already:

C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\basis\console

Created? drop the utils.lua file in the "console" folder.



Once installed, you should be good! Should be able to use on your save games.
text in console is Case Sensitive, Capitals and lower case characters matter.

Example for spawn:

cheats.giveLeb(xx, yy);

^^^ This spawns the Lebanese Fighters ^^^ **note (xx, yy) may actually be (yy, xx)**

For a short list of what can be spawned type:

help()


I hope this help those that either want to tear up the levels or just find the game too difficult to finish.

Enjoy!

P.S. Open Console in-game with: Ctrl + ~
最後修改者:Dr. Banker; 2022 年 1 月 28 日 下午 6:23
< >
目前顯示第 16-27 則留言,共 27
Helth 2022 年 11 月 10 日 上午 6:21 
hello, dear Banker, I am wondering how to spawn the units from the Battlefield DLC. Take the Gazele heli as an example. I have add the code
giveGazele = function(xx, yy)
game.selectEntity(game.spawnHeli("new_gazele", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,
into the lua and save.
but once I type the cheat code in game, it will only spawn some random helis instead of the real gazele . However, the Ka52 can be normally spawned, though it is not exist in original game.
so, im wondering wats going on.
Helth 2022 年 11 月 10 日 上午 7:29 
引用自 Helth
hello, dear Banker, I am wondering how to spawn the units from the Battlefield DLC. Take the Gazele heli as an example. I have add the code
giveGazele = function(xx, yy)
game.selectEntity(game.spawnHeli("new_gazele", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,
into the lua and save.
but once I type the cheat code in game, it will only spawn some random helis instead of the real gazele . However, the Ka52 can be normally spawned, though it is not exist in original game.
so, im wondering wats going on.
U know wat, I just spawned like 20 random helis with this code, and founded there was a gazele in the spawned heils. so maybe the problem is the code?
In the Battlefield DLC file , the gazele is named as the "new_gazele", maybe in the original game it has a different name?
Helth 2022 年 11 月 10 日 下午 9:19 
引用自 Dr. Banker
引用自 Ernst Zündel
The commands to give truck and tank drivers don't seem to be working; and there are commands to what seems to be two different Russian marine squads, but in fact they are practically the same unit. Lastly, I don't remember seeing commands to give mortar infantry.

Yo! so I fixed the mistakes that were plaguing, specifically, the vehicle crews spawning. That should be fixed. I also added Mortar Squad as well!


引用自 sarmad_bro
Can you please add hummvee to this file so we can call them

I have also added the Hummvee as a unit available to spawn! If spawned in the base campaign, it will show up un-textured.
If you spawn Hummvee in Palmyra DLC campaign, it should spawn properly with its respective textures.



The UPDATED FILE link has replaced the old google.drive link AT THE TOP OF THIS THREAD.


Side Note: I still want to get Radio Operators as an available unit to spawn, but I'm having a hard time finding them. I will perhaps revisit that.

Please feel free to throw out more ideas for units to be spawned.

:polite_people: Thanks :SW_logo:
How about add the Hamvee's texture into the base game?
Eizel 2022 年 11 月 15 日 上午 4:08 
引用自 Helth
引用自 Dr. Banker

Yo! so I fixed the mistakes that were plaguing, specifically, the vehicle crews spawning. That should be fixed. I also added Mortar Squad as well!




I have also added the Hummvee as a unit available to spawn! If spawned in the base campaign, it will show up un-textured.
If you spawn Hummvee in Palmyra DLC campaign, it should spawn properly with its respective textures.



The UPDATED FILE link has replaced the old google.drive link AT THE TOP OF THIS THREAD.


Side Note: I still want to get Radio Operators as an available unit to spawn, but I'm having a hard time finding them. I will perhaps revisit that.

Please feel free to throw out more ideas for units to be spawned.

:polite_people: Thanks :SW_logo:
How about add the Hamvee's texture into the base game?

I don't think i can add more texture in the base game, it will take someone whose have more experience in modding the game to add texture or add new unit's.
AkaBoB 2023 年 4 月 8 日 上午 4:51 
Hello my friend, interesting something hits my mind: can I spawn Su24 or Su25 Fighters using utils.lua:

giveSu24B = function(xx, yy)
game.selectEntity(game.spawnPlane("su24_bombs", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,

tools.lua:

function addUnit(utype, uid, unum)

if ((unum == nil) or (unum < 1)) then
unum = 1
end

for count = 1, unum, 1 do

if (utype == TANK) then
game.addTankReserve(uid)
console.log("SET RESERVE >> Tank added >> ", uid)
elseif (utype == SQUAD) then
game.addSquadReserve(uid)
console.log("SET RESERVE >> Squad added >> ", uid)
elseif (utype == CAR) then
game.addCarReserve(uid)
console.log("SET RESERVE >> Car added >> ", uid)
elseif (utype == PLANE) then
game.addPlaneReserve(uid)
console.log("SET RESERVE >> Plane added >> ", uid)
elseif (utype == HELI) then
game.addHeliReserve(uid)
console.log("SET RESERVE >> Heli added >> ", uid)
else
--nonmanaged or wrong unit type
console.log("ERROR::tools.lua >> addUnit >> Nonmanaged or Wrong unit type: ", utype, ".")
end
end
end

function addPlane(uid, unum)
addUnit(PLANE, uid, unum)
end

Unfortunately It doesn't work. :(
Eizel 2023 年 4 月 19 日 上午 4:44 
引用自 AkaBobur
Hello my friend, interesting something hits my mind: can I spawn Su24 or Su25 Fighters using utils.lua:

giveSu24B = function(xx, yy)
game.selectEntity(game.spawnPlane("su24_bombs", xx, yy, game.getLandHeight(xx, yy), 0, "usa"))
end,

tools.lua:

function addUnit(utype, uid, unum)

if ((unum == nil) or (unum < 1)) then
unum = 1
end

for count = 1, unum, 1 do

if (utype == TANK) then
game.addTankReserve(uid)
console.log("SET RESERVE >> Tank added >> ", uid)
elseif (utype == SQUAD) then
game.addSquadReserve(uid)
console.log("SET RESERVE >> Squad added >> ", uid)
elseif (utype == CAR) then
game.addCarReserve(uid)
console.log("SET RESERVE >> Car added >> ", uid)
elseif (utype == PLANE) then
game.addPlaneReserve(uid)
console.log("SET RESERVE >> Plane added >> ", uid)
elseif (utype == HELI) then
game.addHeliReserve(uid)
console.log("SET RESERVE >> Heli added >> ", uid)
else
--nonmanaged or wrong unit type
console.log("ERROR::tools.lua >> addUnit >> Nonmanaged or Wrong unit type: ", utype, ".")
end
end
end

function addPlane(uid, unum)
addUnit(PLANE, uid, unum)
end

Unfortunately It doesn't work. :(
i never mess with plane they never be able to spawned with console, however i have tried messing with the unit that can call CAS in the battle. It spawned but without the planes, i think it was coded in the mission. I also tried spawning them in the mission that had planes, but the spawned unit doesn't have the abilities to call in the CAS but the unit that in the mission have the abilities to spawn CAS.


Edit I found the way to add more CAS and actually spawn in planes. However I cannot add it on my original .lua file, it is on the main pak file, you just have to modify it on your own. Remember to create backups if you want to modify the main file.
最後修改者:Eizel; 2024 年 8 月 5 日 下午 7:35
Dooming Feels 2023 年 6 月 9 日 下午 1:07 
Can someone plz add a cheat mod to this game on steam?
SuperNiceGuy 2024 年 7 月 6 日 下午 9:09 
How do I know the coordinate of (XX, YY) ??
Eizel 2024 年 8 月 5 日 下午 7:32 
引用自 SuperNiceGuy
How do I know the coordinate of (XX, YY) ??
Look at the map, there is a grid system, it starts on top left and the furthest is on the bottom right. Sometimes each grid represent 100 x and 100 y, but it depend on the mission so you have to figure it out on your own.
GameMaster 2024 年 9 月 12 日 上午 12:16 
Um, I can't find the god mode in the console commands. Does anyone have that code available to them? I remember an older copy of it having it...
ProphaCeee~ 3 月 6 日 下午 12:04 
引用自 Eizel
I forgot to mention this but if you still had the problem that the console wont show up you need to add .lua file into main.pak file there are console folder and place it there. There is a password tho here the password " m,nw0rdk1s;ldscj " Replace the .lua file with your downloaded one if it still dont work

A)You don't put those file on both folder on main.pak and basis console or,
B)There something wrong with the code that prevents it to show up example: the console log that show all the codes, or something wrong with unit code

if it works i'm glad to help, if it still not working show me the link .lua file i downloaded it and try to fix it
either way see you later!

Edit: Here my updated version of .lua file it removes the 1 bugged units and added disclaimer for case sensitive code

https://www.file-upload.com/z2m9mje4y90y

Edit 2: I finally did it! I made the Palmyra Version, how to install it? well you just place it here
C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\dlc\ReturnToPalmyra\basis\console

If there aren't any console folder make it!

https://drive.google.com/file/d/19iyUKvd2zbZcGA-JP3XWP0oYAyVqlflU/view?usp=sharing
Hiya guys sorry for digging up this archived thread; I just beat the game but would like to go through it in an easier way. The links here seems to be invalid so I would be really appreciated if you happened to keep the file now.
Dr. Banker 3 月 8 日 下午 12:00 
Yo! no worries, there should be an operational googledrive link at the top of this thread to a copy of the "utils.lua" which you will need to summon units at your discretion! I'll copy this link below.

https://drive.google.com/file/d/1cjaahNR4qn5kIopVSikEMkNx4oNDZM6O/view?usp=sharing

-----------------------------------------------

Be sure to follow the simple step of creating a "console" folder at this filepath:

C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\basis\

-----------------------------------------------

Then drop that "utils.lua" file in that folder, file path should probably look like this:

C:\Program Files (x86)\Steam\steamapps\common\Syrian Warfare\basis\console

-----------------------------------------------

once complete, you should be able to use "Ctrl + ~" keybind to bring up the console (in-game)

type "help()" to show a list of unit codes for spawning.
最後修改者:Dr. Banker; 3 月 8 日 下午 12:02
< >
目前顯示第 16-27 則留言,共 27
每頁顯示: 1530 50

張貼日期: 2021 年 9 月 28 日 下午 4:47
回覆: 27