LOGIN  .  SIGNUP   .  SUPPORT 
HOME / PC CHEATS & TRAINERS / HEARTS OF IRON 3 / MESSAGE BOARD / CHEAT SCRIPT

Hearts of Iron 3

Message Board for PC version

Signup   Message Boards Home   Newest Posts   My Favorite Boards   My Threads
Page 4 of 4   •  First Page  •  Previous Page  •   Next Page  •   Last Page
Signup or Login to Post
cheat script
 
Itchiga  posted on Jan 24, 2011 7:50:22 AM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to Itchiga
ELITE
Hi , i got a problem

When i get to the game and type "event 5050" then the game crash a say "the game is not respoding' (or something like that)

Heelp

(I get 1.04 ver.)

[Edited by Itchiga, 1/24/2011 8:06:36 AM]

 
HappyShaikan  posted on Jun 09, 2011 9:44:08 AM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to HappyShaikan
ELITE
quote:
originally posted by overweightninja

Quick copy & paste from something I ran up earlier:
Note I just edited the first entry I could find so the in-game dialogue is still for the "Nationalises Private Sector" event, change this if it bothers you obviously.


Add this text to "\events\PoliticalEvents.txt" to create the event itself.


EDIT


Unless you really feel the need, DO NOT backup the file first, as this results in both files being read by the game, duplicate entries for events etc and therefore CTDs. If you really want to backup first make sure the backups are kept in seperate folders, preferably outside of your HoI3 directory.


##########################################
# Government nationalizes private sector #
##########################################
country_event = {

id = 5050

trigger = {
not = { government = market_liberalism }
not = { government = social_democracy }
not = { government = social_liberalism }
not = { government = social_conservatism }
dissent = 5000
}

mean_time_to_happen = {
months = 24

modifier = {
factor = 2.0
war = yes
}
}

title = "EVTNAME5005"
desc = "EVTDESC5005"
picture = "private_sector"

option = {
name = "EVTOPTA5005" # OK
add_country_modifier = {
name = "nationalization_of_private_sector_ic"
duration = 4380
}
}
}


Then add the following text to \common\event_modifiers.txt to create the actual effects for the event, again edit these if you wish.

nationalization_of_private_sector_ic = {
dissent = -10.00
global_ic = 8.00
global_manpower_modifier = 10.00
global_leadership_modifier = 10.00
global_research_speed = 10.00
research_efficiency = 100.00
global_money = 10.00
global_metal = 10.00
global_supplies = 10.00
global_metal = 10.00
global_energy = 10.00
global_oil = 10.00
global_rare_materials = 10.00
unit_recruitment_time = -1.0
war_consumer_goods_demand = -1.00
peace_consumer_goods_demand = -1.00
espionage_bonus = 10.00
ruling_party_support = 10.00
}


Then you just need to fire the event (bring up console with tilde, then type "event 5050" and strike enter) to enable the cheats!
Hopefully shouldn't fire at random due to the dissent = 500 requirement.
Hope that helps someone!


Edit: Try to stick to the formatting already in the file if possible, doesn't show up properly on here , don't think it should matter too much though.

[Edited by overweightninja, 8/11/2009 3:49:41 PM]

[Edited by overweightninja, 8/12/2009 4:52:59 AM]

[Edited by overweightninja, 12/4/2009 1:45:36 PM]

The Problem with this is that you dont have it for yourself, the AI will get it also because of random event.
You can do it well better when you create an event which is only working for yourself.

Before you begin, make allways backups of all files on which you change anything. When you **** up your game with modding, it is annoying to rebuild it without reinstalling. At best, copy the files in a other folder, like HoI III/Backup or something. It is safer, then the game will take also files which are not needed, but same format as other files.

First, you need an ID. If you have no mod like DiDay installed, then the ID 99999 will do fine work.

country_event = {
id = 99999

You need a trigger also, which should check if you are AI or player. Simple task:



trigger = {
ai = no

Then you can give the event a title, description and eventually a picture from another event.

title = "Advantage"
desc = "This will give you a real advantage!"
picture = "great_war_manifestion"

After this short thing, the option will cost a lil more work to be done. As explained above, you need to edit a second file.
In this file you can also create a new event modifier, like advantage_modifier or something else. One important thing is to know that there cannot exist 2 modifiers with the same name, the game will crash on loading or when the event is fired at any time.
But at all, you can copy and paste the modifier above in your new modifier, it works fine.

Switch back to the other file with the events in and add your modifier as above in the options block with you choosen name like in the modifier file.
The duration is needed, otherwise it wont work.

When you wanna dug deeper into modding, look at other events and create for yourself an country flag to check this as a trigger also.

Save the files and start a game. If you have done it right, you will see what the click on the OK button do. It is like other events and shows you a list with the details.

Have fun!

PS: When you dont want to research the stuff, then you need to look into a savegame with any editor.
Search for your country tag, it looks like GER=. Search case sensitive, you will find it soon.

 
HappyShaikan  posted on Jun 09, 2011 12:34:07 PM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to HappyShaikan
ELITE
quote:
originally posted by overweightninja

Quick copy & paste from something I ran up earlier:
Note I just edited the first entry I could find so the in-game dialogue is still for the "Nationalises Private Sector" event, change this if it bothers you obviously.


Add this text to "\events\PoliticalEvents.txt" to create the event itself.


EDIT


Unless you really feel the need, DO NOT backup the file first, as this results in both files being read by the game, duplicate entries for events etc and therefore CTDs. If you really want to backup first make sure the backups are kept in seperate folders, preferably outside of your HoI3 directory.


##########################################
# Government nationalizes private sector #
##########################################
country_event = {

id = 5050

trigger = {
not = { government = market_liberalism }
not = { government = social_democracy }
not = { government = social_liberalism }
not = { government = social_conservatism }
dissent = 5000
}

mean_time_to_happen = {
months = 24

modifier = {
factor = 2.0
war = yes
}
}

title = "EVTNAME5005"
desc = "EVTDESC5005"
picture = "private_sector"

option = {
name = "EVTOPTA5005" # OK
add_country_modifier = {
name = "nationalization_of_private_sector_ic"
duration = 4380
}
}
}


Then add the following text to \common\event_modifiers.txt to create the actual effects for the event, again edit these if you wish.

nationalization_of_private_sector_ic = {
dissent = -10.00
global_ic = 8.00
global_manpower_modifier = 10.00
global_leadership_modifier = 10.00
global_research_speed = 10.00
research_efficiency = 100.00
global_money = 10.00
global_metal = 10.00
global_supplies = 10.00
global_metal = 10.00
global_energy = 10.00
global_oil = 10.00
global_rare_materials = 10.00
unit_recruitment_time = -1.0
war_consumer_goods_demand = -1.00
peace_consumer_goods_demand = -1.00
espionage_bonus = 10.00
ruling_party_support = 10.00
}


Then you just need to fire the event (bring up console with tilde, then type "event 5050" and strike enter) to enable the cheats!
Hopefully shouldn't fire at random due to the dissent = 500 requirement.
Hope that helps someone!


Edit: Try to stick to the formatting already in the file if possible, doesn't show up properly on here , don't think it should matter too much though.

[Edited by overweightninja, 8/11/2009 3:49:41 PM]

[Edited by overweightninja, 8/12/2009 4:52:59 AM]

[Edited by overweightninja, 12/4/2009 1:45:36 PM]

The Problem with this is that you dont have it for yourself, the AI will get it also because of random event.
You can do it well better when you create an event which is only working for yourself.

Before you begin, make allways backups of all files on which you change anything. When you **** up your game with modding, it is annoying to rebuild it without reinstalling. At best, copy the files in a other folder, like HoI III/Backup or something. It is safer, then the game will take also files which are not needed, but same format as other files.

First, you need an ID. If you have no mod like DiDay installed, then the ID 99999 will do fine work.

country_event = {
id = 99999

You need a trigger also, which should check if you are AI or player. Simple task:



trigger = {
ai = no

Then you can give the event a title, description and eventually a picture from another event.

title = "Advantage"
desc = "This will give you a real advantage!"
picture = "great_war_manifestion"

After this short thing, the option will cost a lil more work to be done. As explained above, you need to edit a second file.
In this file you can also create a new event modifier, like advantage_modifier or something else. One important thing is to know that there cannot exist 2 modifiers with the same name, the game will crash on loading or when the event is fired at any time.
But at all, you can copy and paste the modifier above in your new modifier, it works fine.

Switch back to the other file with the events in and add your modifier as above in the options block with you choosen name like in the modifier file.
The duration is needed, otherwise it wont work.

When you wanna dug deeper into modding, look at other events and create for yourself an country flag to check this as a trigger also.

Save the files and start a game. If you have done it right, you will see what the click on the OK button do. It is like other events and shows you a list with the details.

Have fun!

PS: When you dont want to research the stuff, then you need to look into a savegame with any editor.
Search for your country tag, it looks like GER=. Search case sensitive, you will find it soon.

 
Ov3RKiLL  posted on Jan 17, 2012 12:52:59 PM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to Ov3RKiLL
SAGE
I know its been half a year since the last post but i hope someone answer.

@HappyShaikan can you explain this more clearly. Where i should add this:

country_event = {
id = 99999

and..

trigger = {
ai = no

and..

title = "Advantage"
desc = "This will give you a real advantage!"
picture = "great_war_manifestion"

In @overweightninja's script should i add this, or in other .txt or after @overweightninja's script? Does it matter at which line i add them? Thanks!

 
HappyShaikan  posted on Feb 09, 2012 6:18:16 AM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to HappyShaikan
ELITE
Sorry i seen it this late.

A little problem is i had to reinstall the game cause of broken installation. So my old files are gone.

But no problem, i still have the modifiers here. I dont know if these are all the modifiers, but all i found in the files.
The meaning of the modifiers should be selfexplained.
1.00 means 100%. So you can put in 999999.00 and get 99999900% of the modified value.
But be careful. When you play as germany and kick enemys asses you will get MANY ressources of all kind. Sometimes the variables will overflow and crash the game in the midtime and you cant do anything about it. So dont try to give you uberressources to create an army of 30000 divisions before the war begins.


LIST:

ruling_party_support = 0.50 #
peace_consumer_goods_demand = -1.00 #
war_consumer_goods_demand = -1.00 #
global_manpower_modifier = 0.50 # bonus growing manpower
global_leadership_modifier = 1.00 # bonus leadership
dissent = -0.1 #
global_ic = 1.00 # out of map IC bonus in percent
global_money = 1.00 #
global_resources = 1.00 #
officer_recruitment = 1.00 #
unit_recruitment_time = -10.00 # ex: Battleship needs 30 days to be ready
espionage_bonus = 0.50 #
counter_espionage = 0.00 #
national_unity = 0.50 #
air_intercept = 1.00 #
industrial_efficiency = 0.50 #
supply_throughput = 1.00 #
unit_start_experience = 1.00 # 100 EP is max
combat_movement_speed = 1.00 # blitzkrieg at best
org_regain = 1.00 # global...try it
soft_attack = 1.00 # global...try it
hard_attack = 1.00 # global...try it
convoy_raid = 1.00 #
leader_defence = 0.00 # ?
land_build_speed = 5.00 #
territorial_pride = 1.00 #
port_strike = 1.00 #
naval_strike = 1.00 #
reinforcement_bonus = 1.00 #
unit_repair = 1.00 #
research_efficiency = 9.99 #
naval_base_efficiency = 1.00 #
air_base_efficiency = 1.00 #
global_revolt_risk = -20.00 # this should punish the pastisans so they wont try to do anything, try it.
neutrality_change = 1.00 # i had it not used yet
jungle_effects = -1.00
casualty_trickleback = 1.00 # loss recovery
fuel_conversion = 1.00
land_organisation
naval_organisation
air_organisation

This are the modifiers.

I found out that it is enough to change one file at all. It is the static_modifiers.txt.
Here you find the values right after the beginning of the game you start and which advantages or disadvantages you or the AI will get.
The good thing here is you can edit it and dont need to create an event or flags or modifiers.
Here you can also edit the global values for ALL your enemys.
Dont be too much of a cheater and take the values not that high. You will get more and more advantages like the Skoda factory plant after czech occupation.
These more and more slightly percentage improvements will kill your game.
Try it and you will get the best way for yourself and your machine.

Good luck. Hope you read it soon.

 
Dethor  posted on Sep 02, 2015 12:34:34 PM - Report post

Current rank: 1 Star. Next Rank at 100 Posts.
Send a message to Dethor
ELITE
Do you know how to incorporate any modifiers into the static_modifiers file to increase the construction speed of things like naval base, airbase, anti-air, forts and infrastructure?
Page 4 of 4   •  First Page  •  Previous Page  •   Next Page  •   Last Page
  Post Reply
Go to page: 1  2  3  4 
All times are (GMT -06:00) Central Time (US & Canada). Current time is 12:14:50 PM