• 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.

Kaigon

Cake or Death?
48 Badges
Mar 15, 2002
4.216
0
kaigon.ripperdoc.net
  • Crusader Kings II: Horse Lords
  • Sengoku
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis: Rome
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings Complete
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • 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
  • Deus Vult
  • Europa Universalis III
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
My scenario works quite well but one thing seems to ruin it all. To be specific; IDs.
This scenario has it own events, monarchs and leaders resulting in that I use IDs up to 33000. The problem is that every alliance, unit, combat etc has it own ID and they often seem to use the same id as a event/monarch/leader etc. The game crashes after about 14-24 months, which probably is the consequence of this ID-share.

Is there any way to point out where the ID should start (I want all additional IDs to be after, lets say 50000)?

Shouldn't the CPU check if the ID already is in use by the game?
 

unmerged(5333)

First Lieutenant
Aug 13, 2001
283
0
Visit site
Re : Conflicting IDs.

Hello Kaigon,

Conflicting IDs is a rather "tricky" business; hitherto you got
no answer, no help. So, I hope my observations can help you.

When you write your scenario you ought to create :
- monarch-files and
- leader-files and
- ...

Its rather evident that ALL have a UNIQUE address ... when your
scenario starts. Later on it is not that evident !

You "meet" armies commanded by the AI. The AI can activate
a monarch, e.g. as a general. Precisely at that moment the boss,
EU2.exe, gives him an address that figures in his address list. That address is a the first "free" LOW ADDRESS he finds. Because
he is the boss ... all the low addresses you used are "free". And
that results is an ID-conflict. You can "admire" that conflict in
your saved files.

Solution ?

Don't use addresses which might be used by the boss : 0 up to
14999 and above 1.000.000..

So start your leader-files with the address 15000; your event-files
from 20000 onwards.

If your first leader is given the ID 20000 you are in trouble once
again. Why ? I don't know. It was Havard who gave me that advice and when I asked him the reason why he answered,
honestly like always, : I don't know.

I sincerely hope this text is helping the man who was thrown
out of hell (drinking too much probably, sorry : of course).


Predator I.
 

Havard

Dark Power
49 Badges
Jun 28, 2001
15.686
170
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • 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: Sword of Islam
  • Europa Universalis III
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
Re: Re : Conflicting IDs.

Originally posted by Predator I

If your first leader is given the ID 20000 you are in trouble once again. Why ? I don't know. It was Havard who gave me that advice and when I asked him the reason why he answered, honestly like always, : I don't know.
It has to do with the data type used, but why 20000 is the limit is hard to figure out, because AFAIK there are no datatypes that covers the range 0-20000 only...
:confused:
 

Kaigon

Cake or Death?
48 Badges
Mar 15, 2002
4.216
0
kaigon.ripperdoc.net
  • Crusader Kings II: Horse Lords
  • Sengoku
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis: Rome
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Crusader Kings Complete
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • 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
  • Deus Vult
  • Europa Universalis III
  • Cities in Motion
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
Re: Re : Conflicting IDs.

Originally posted by Predator I
Solution ?

Don't use addresses which might be used by the boss : 0 up to
14999 and above 1.000.000..

So start your leader-files with the address 15000; your event-files
from 20000 onwards.

Thanks! Now I have to reconsider my scenario, it was meant to have about 14000 leaders... that would have been nice:cool:
 

unmerged(5333)

First Lieutenant
Aug 13, 2001
283
0
Visit site
Re : 14000 leaders.

Hello Kaigon,


Don't throw away your scenario and don't start to adapt that
number, those 14.000 leaders. Why ?

I don't know why, I only know that's its not a hunch. I'm sure,
ABSOLUTELY CONVINCED that a 100% WORKING scenario with an
near unlimitted number of leaders is feasible !

Now there is only one difficulty : HOW !

I have already found a way to produce a NEVER ENDING leader-
file for one country. I'm going to publish that text tomorrow or
perhaps even this evening. And ... when you can do it for one country you can do it for the 240 countries in your scenario.
And that ID problem, we'll solve it !


Predator I.
 

unmerged(5333)

First Lieutenant
Aug 13, 2001
283
0
Visit site
re : Conflicting Ids.

Hello Kaigon,

Never give up !

It's possible, I repeat possble, I found a solution for your
+14000 leaders problem already.

The solution is :

0.

?

Yes zero.

In an adapted or enhanced GC with BUR, I have a BUR-historical-
leader-file of 250 records, all in the range 15000. I simply added
an O and I had 250 # in the range 150000. I started a new game
in 1419 and stopped in 1430; beween these 2 dates I stopped
and restarted 4 times. No problems at all.

Try it. Perhaps, it will work and "the work" to make it ""work"" is
minimal; a prerequisite of a (possible !) solution.


Predator I.
 

unmerged(5333)

First Lieutenant
Aug 13, 2001
283
0
Visit site
Re : Kaigon 150000.

Hello Kaigon,

Yes Kaigon that's what I wanted to tell you. The system, thus
EU2.exe, accepts "historicalleaders" with the ID 150000-
150250.

During the test no addressing - or any other - problems at all.

Thus ... I presume that the ID 151399 will be accepted too.


Predator I.
 

unmerged(5333)

First Lieutenant
Aug 13, 2001
283
0
Visit site
Re : Kaigon and 15.

Hello Kaigon,

The number 15 has no significance at all, almost ...

You wanted and want to create and use 14000 leaders. That
number is too large to fit in the range 15000-19999 - see
Havard's post.

A solution was needed !

So I used an existing scenario that inluded my BUR-leader-file.
Those leaders have the IDs 15000-15250.

To minimalize my typing work I simply add or introduced a number
zero to or in each ID :
- 15000 became 150000
- 15088 = 150088
- 15250 = 150250.

That's the reason why of that number 15.

At any rate THE TRICK WORKED. In fact it is not a trick. You can see it when you upload a saved file.

150000 + 14000 = 164000. I'm pretty sure that that range of
addresses will cause you no trouble at all.

Back on track again ?


Predator I.