Syrian Warfare

Syrian Warfare

View Stats:
Dr. Banker Sep 28, 2021 @ 4:47pm
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 + ~
Last edited by Dr. Banker; Jan 28, 2022 @ 6:23pm
< >
Showing 1-15 of 28 comments
Eizel Oct 5, 2021 @ 9:34am 
Oh hey there, first of all thank you for explaining this way better than I do, secondly i will make a separate .lua file for Return To Palmyra DLC. Because if you try to add unit from DLC then run it on original game either
A) it will bugged out for texture and voice or, B) the console doesn't work at all

So yeah I worked that .lua file while I'm fighting for my PC that always get me BSOD (Blue Screen of Death) it took me about 2 month to complete that .lua file

Sorry for any mistype and bad
language, English not my second language. And also I'm on my phone because my PC won't work

So peace!
Dr. Banker Oct 5, 2021 @ 12:40pm 
Originally posted by A Perfectly normal Tower:
Oh hey there, first of all thank you for explaining this way better than I do, secondly i will make a separate .lua file for Return To Palmyra DLC. Because if you try to add unit from DLC then run it on original game either
A) it will bugged out for texture and voice or, B) the console doesn't work at all

So yeah I worked that .lua file while I'm fighting for my PC that always get me BSOD (Blue Screen of Death) it took me about 2 month to complete that .lua file

Sorry for any mistype and bad
language, English not my second language. And also I'm on my phone because my PC won't work

So peace!

Yo!
Well I appreciate your work! I've just discovered it (your link) about 2 months ago and was the only .lua of others that functioned properly, for me at least. So, thank you for the many posts helping some of us with this.

Full disclosure: I do have the various DLC's --> When I spawn the Lebanese Fighters (in the base game) they seem to be textured, I am not sure if the voices are correct, but the squad icon forsure is missing as the dreaded red "X' in a yellow box.
-When spawning a tank from Palmyra DLC, however, I experience everything you explained, the Tank itself is missing textures while retaining shape.

All in all, maybe skip the fighters unless one(the player) has the dlc.

to spawn a T90 tank:
cheats.giveT90(xx, yy);

A Perfectly normal Tower, you are welcome to post your own link here as well, I don't mind :D
Thank you, again.
I'll see you around!:SW_logo:
Eizel Oct 6, 2021 @ 1:18am 
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
Last edited by Eizel; Oct 8, 2021 @ 10:01pm
Ernst Zündel Dec 18, 2021 @ 7:13am 
The "help()" command only shows command lines for vehicles. Are there commands for infantry squads and ammunition trucks?
Dr. Banker Dec 18, 2021 @ 12:22pm 
Originally posted by Ernst Zündel:
The "help()" command only shows command lines for vehicles. Are there commands for infantry squads and ammunition trucks?
I believe infantry is shown below the vehicles if you're able to scroll through the help() lines in console.
Ernst Zündel Dec 18, 2021 @ 1:00pm 
I saw them. Thank you.
Ernst Zündel Dec 27, 2021 @ 6:02am 
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.
Last edited by Ernst Zündel; Dec 27, 2021 @ 6:04am
Dr. Banker Dec 27, 2021 @ 10:42am 
Originally posted by 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.
You're right. I could probably add them in. Mortar is definitely not there, and I recall tank crew and vehicle crew not working, I could probably fix/add them all. I will revisit, and re-upload. However its not on my to-do list, Maybe I'll fix it up in the following week or so.

as a note, I probably will also add radio operators/ or whichever Russian units call in air-support as well. I will re-post here in the event of additions and/or changes.

If you find more to be desired or more non-functional parts of these commands, please, keep reporting them here. Thank you!
Eizel Dec 30, 2021 @ 12:52am 
Originally posted by Dr. Banker:
Originally posted by 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.
You're right. I could probably add them in. Mortar is definitely not there, and I recall tank crew and vehicle crew not working, I could probably fix/add them all. I will revisit, and re-upload. However its not on my to-do list, Maybe I'll fix it up in the following week or so.

as a note, I probably will also add radio operators/ or whichever Russian units call in air-support as well. I will re-post here in the event of additions and/or changes.

If you find more to be desired or more non-functional parts of these commands, please, keep reporting them here. Thank you!


The Russian Forward air command doesn't work for calling air strike, only the mission that had plane then it can work. That's why I dint add them, also there are a mortar team in the command or you running different version of the .lua file.

I will fixing the issue of Tank and BTR crew don't spawn, i will try to add suicide bomber too.

Thanks for reporting the bug and I'll see you soon!


Edit: The suicide bomber doesn't work it just spawn civilian and if its vehicle it changed into artillery vehicle.
Last edited by Eizel; Dec 30, 2021 @ 2:04am
Broke Engineer Jan 2, 2022 @ 8:14am 
Can you please add humvee to this file so we can call them
Eizel Jan 5, 2022 @ 7:03am 
Originally posted by sarmad_bro:
Can you please add humvee to this file so we can call them

Do you have Return to Palymira DLC? If don't you won't be able to spawn them.
Dr. Banker Jan 28, 2022 @ 5:48pm 
Originally posted by 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!


Originally posted by 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:
Last edited by Dr. Banker; Jan 29, 2022 @ 11:22am
Zhikaka Mar 16, 2022 @ 6:34am 
00,00 of what? What would be middle of map? What would be middle NSEW? What would be NSEW corners? Is it map size dependent? Safe spawning coordinates would be nice, if anyone has some.
Dr. Banker Mar 16, 2022 @ 10:38pm 
Originally posted by 184x184:
00,00 of what? What would be middle of map? What would be middle NSEW? What would be NSEW corners? Is it map size dependent? Safe spawning coordinates would be nice, if anyone has some.

00,00 = Top Left Corner of the Mini Map

The First Number is Vertical value that goes down from Top Left Corner with higher value

The Second Number is Horizontal value and moves right with higher value

I tested 3 missions (missions 1, 2, & 4):
and it seems most maps have Center values @ (250, 250);
but if map is smaller or larger it may change.--
--I could swear some maps were different and map size was dependent, but Center was consistent for those missions tested.

Hope this helps!
jellyfish12 Nov 9, 2022 @ 10:41pm 
Originally posted by Dr. Banker:
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 + ~

Do you have the full list of the command ? I mean, yes the help() command does give us the list, but is there any else that hasn't put into the help() command list ?
< >
Showing 1-15 of 28 comments
Per page: 1530 50