• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Nov 4, 2006
515
0
Hi,

I'm having a serious problem. I like the idea of granting, where historically relevant, extra national cores to the countries I'm playing(so far I've tried it for Germany and Turkey). The trouble is that whenever I've tried doing my own versions of the relevant event-codes, the computer always crashes when I start loading a particular game after inserting the new event-code number etc. into a relevant file. This happens, no matter how careful I am re putting in the right brackets/codes etc. All I get is a message onscreen saying something like "there is something wrong with the lhs at line 726" or whatever that means, and the game refuses to load further.

In this case, I would be most grateful is if someone could provide me with a short event-code, which is grammatically-correct etc., for the following situation. I would just like to add national cores for the following provinces in Slovenia and Switzerland and Northern Italy for Germany(ie province IDs 380, 459, 371, 372 and 533), by writing "event" in the F12 window and then the event-ID number to get those cores. I should add that the event-code where I tried putting in those extra German national-cores was put into the Yugoslavia file in the db/events folder, near the bottom.I doubt it would have worked if put anywhere else, but who knows, I might be wrong. The really annoying thing is that whenever I simply delete a line from a particular event-file(such as one giving Italy a core on Llubljana), everything still works without any crash.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
First of all, do you want those provinces to be core's for Germany at the start of the scenario or do you want them to become core provinces through events? If through events what triggers do you want? Do you want Germany to be at peace or at war, ect.?

The error that you are getting is the programs way of telling you what line specifically is having problems. If you star at the very top of the event file and count down to line 732 that is the line that is causing problems. My suggestion is to place any new events at the top of the file so that you don't have to count as much. This page is great for explaining and illustrating event commands, here . If this doesn't help explain in detail what you want and when you want it to happen and I will try to write the event for you.
 

Micah Goodman 2

Colonel
98 Badges
Dec 28, 2003
930
263
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Cities: Skylines
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Wealth of Nations
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
PS questions like this will get much more response in the mod forum as most modders hardley ever come to the genral forum.
 
Nov 4, 2006
515
0
Micah Goodman 2 said:
First of all, do you want those provinces to be core's for Germany at the start of the scenario or do you want them to become core provinces through events? If through events what triggers do you want? Do you want Germany to be at peace or at war, ect.?

The error that you are getting is the programs way of telling you what line specifically is having problems. If you star at the very top of the event file and count down to line 732 that is the line that is causing problems. My suggestion is to place any new events at the top of the file so that you don't have to count as much. This page is great for explaining and illustrating event commands, here . If this doesn't help explain in detail what you want and when you want it to happen and I will try to write the event for you.


I just want the event to fire when I put in the event-code number in the F12 window ,during my current game(I'm at war with the Allies, not yet at war with Yugoslavia).

Re line 726 etc.:- Yes, you're right, putting it right at the bottom wasn't very bright. I'll put it at the top. Hope it works - I'll try again. I've printed out those commands, but since I copied all my stuff from other events with no change except province IDs, I'm not too confident.
 
Last edited:

blue emu

GroFAZ
Moderator
8 Badges
Mar 13, 2004
17.503
20.150
  • Crusader Kings II
  • Europa Universalis III
  • Hearts of Iron III
  • Hearts of Iron III Collection
  • Heir to the Throne
  • Europa Universalis: Rome
  • 500k Club
  • Hearts of Iron II: Beta
Moved to the Modifications Forum.
 

unmerged(71732)

Captain
Mar 14, 2007
399
0
Generally, when this happens, it's:

a) You forgot to finish the action ex:

action_a = {
name = "Go to war against the USSR"

command = { type = war which = SOV }

}
(If you finish the event just put another }

b)You have to put 2 } in the end of the event, so something like this:event made by me

#########################################################################
# The visit of Bush in Portugal
#########################################################################
event = {
id = 600
random = no
trigger = {
}

name = "George W. Bush visitation" #Defined by Zokan
desc = "Bush was in Portugal to talk about the base in Azores, The Azores it's a vital base for they're Air Planes, since it's a supply

point for they're Air planes in the war against terrorism, if we give them the authorization, they 'ill reward us, what sould we do?"

picture = "George_Bush"
style = 1
date = { day = 20 month = march year = 2003 }


action_a = {
ai_chance = 80
name = "Let's talk about this in the table"


command = { type = dissent value = -10 }


command = { type = trigger which = 1056 } # They want to discuss about our proposal

}

action_b = {
ai_chance = 20
name = "We don't accept they're offers!" #Changeable ##Defined by Zokan


command = { type = dissent value = 10 }


command = { type = trigger which = 1057 } # They refuse to help us in our war against terrorism
}
}
 
Nov 4, 2006
515
0
I think it must have been due to a missing bracket, after all. I reedited and tried as hard as possible to copy exactly the text of other events already used by the (WIF) mod, and eventually it worked. Unfortunately, there are so many overlapping events that I ended up with Germany not only getting Slovenian/Swiss and Trento cores but also cores for most of Croatia as well, with Italy grabbing some provinces I'd wrongly thought I'd managed to delete. But, since I've managed to get it right, after a while, I'm hopeful that these side-issues will also get sorted out.