Latest Posts

Topic: Cheat 'Codes' in Single Player Mode

Zeak
Avatar
Joined: 2012-04-01, 11:35
Posts: 12
Ranking
Pry about Widelands
Location: Sydney, Australia
Posted at: 2012-04-10, 14:30

These are not codes but more or less a configured starting condition. Just copy them to the scripts folder in the tribe. Right click and save to the appropriate folders (for win users C:/Program Files/Widelands/tribes/xxx/scripting)

atlanteans = http://www.brookeden.org/widelands/sc97_headquarters_cheater.lua

barbarians = http://www.brookeden.org/widelands/sc98_headquarters_cheater.lua

empire = http://www.brookeden.org/widelands/sc99_headquarters_cheater.lua

Edited: 2012-04-10, 14:31
Top Quote
wolf
Joined: 2012-05-06, 17:30
Posts: 1
Ranking
Just found this site
Location: France
Posted at: 2012-05-06, 17:56

First excuse my english but it's not my natural language. There's another way to cheat in single player mode : create your one tribe with custom buildings

steps for windows (i thing it's the same way for other OS)

1 Open widelands/tribes directory and copy to the desktop a tribe (for exemple empire) 2 Rename this directory (cempire) 3 Open cempire/conf. with an text editor and remplace tribe name (name=_ CEmpire) In this file you can change your starting condition 4 Open cempire/buildings directory and copy any building (well) and rename it (soldier) 5 Rename png files soldier.png and soldier_i_00.png and edit them as you wich (but they must be 30x30 and 100x100) 6 Edit with text editor soldier/conf. and change it to :

[global]

descname=_ Soldier

type=production

size=small

buildable=yes

buildicon=soldier.png

worker=carrier

program=work

output=helm

output=wood_lance

stopable=yes

[inputs]

[work]

sleep=20

animate=working 20

produce=helm

produce=wood_lance

[buildcost]

[idle]

pics=soldier_i_??.png

hotspot=49 49

[working]

pics=soldier_i_??.png

hotspot=49 49

fps=10

[build]

pics=soldier_i_??.png

hotspot=49 49

7 Move cempire directory to widelands/tribes 8 Play a custom game with the new tribe (CEmpire) 9 Enjoy -> the new small building "Soldier" will cost anything, use anything and create helmet and wood lance very quickly. (I suggest to build a direct road to a warehouse/HQ)

Note : you can directly start at step 4. If ennemy as a modified tribe, he will have the cheats, but he don't necessitly build the new one.


Top Quote
Tmk
Avatar
Joined: 2010-05-08, 18:06
Posts: 42
Ranking
Pry about Widelands
Posted at: 2013-03-18, 01:26

Cheats would be nice to help stuck AI rescue their economy, too. Often it's just five trunks or so. Is there another way to edit save games than having debug builds or tweaking start scripts?

Edited: 2013-03-18, 18:08
Top Quote
ixprefect
Joined: 2009-02-27, 14:28
Posts: 367
Ranking
Tribe Member
Posted at: 2013-03-18, 08:08

Not officially. Save games are just zip files with a different extension, so you can look at those contents. Most of the relevant data is in binary files, though, but you could probably do stuff like scan for the storage amounts in your warehouses and then increase those numbers in a hex editor. All of this is obviously at your own risk.


Top Quote
Tmk
Avatar
Joined: 2010-05-08, 18:06
Posts: 42
Ranking
Pry about Widelands
Posted at: 2013-03-18, 18:03

Too bad I can't read binary face-smile.png


Top Quote