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

FOARP

Field Marshal
49 Badges
Sep 10, 2008
6.137
4.022
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III
  • Gettysburg
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • 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 III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
1) My mod is running a little slow (although, it has to be said, my computer is not exactly the fastest), would I be right in thinking that increasing the offset for events will make it a bit faster as the game won't have to check the triggers so often?

2) I've created some events using Notepad ++, however, if I open the events folder with the old notepad the events appear to lack spacing between lines/justification etc. These events will still fire properly won't they? Is there a way of making them readable both with Notepad ++ and the old notepad?

3) I'm having a bit of difficulty getting Italy to garrison East Africa. Even if I mod the ai folder to garrison the border with ENG (i.e., ENG = 100 in the country_priorities section of the ai file), removed the East African provinces from the 'ignore = ...' section, and set province 1046 (i.e., Addis Ababa in the E3 mod) as 100 in the province_priorities section of the garrison section of the ai file, East Africa is totally deserted (not one division) by the time war is declared. I've also made similar changes in all the switch files.

Is there a way of fixing this? Italy should at least put a few divisions in East Africa, even if they do get destroyed pretty quickly. Plus it would be good to know how to make the ai actually garrison a section of the map.
 

Amallric

Field Marshal
4 Badges
May 18, 2008
4.423
267
  • Arsenal of Democracy
  • Hearts of Iron III
  • Europa Universalis IV
  • 500k Club
1 you wont feel the difference

2 dunno what system notepad++ is using but the events should work

3 maybe look where the units are going and why. also tou may look on the core mod files, they managed to get the result you want.
 

FOARP

Field Marshal
49 Badges
Sep 10, 2008
6.137
4.022
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III
  • Gettysburg
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • 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 III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
Cheers for the advice. I think that Notepad++ is causing some problems though. In Notepad++ the events I write start out looking like this:

Notepad.jpg


But in notepad they look like this:

Oldnotepad.jpg


And when I try to load the scenario with the events I get an error message for an unknown LHS "event = {" with a high line number.

Since I know that Notepad++ is used by a lot of the people who write these mods I presume there must be some way round this, but what is it?

Edit: is the answer just double-spacing each line?
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
The reason why is probably due to the length of each row. Notepad can only take a length of 1025 characters (regardless if it has Word Wrap off) and Notepad++ (well I don't know exactly) can do more than 65640 characters (this is where I stop testing).

2) I've created some events using Notepad ++, however, if I open the events folder with the old notepad the events appear to lack spacing between lines/justification etc. These events will still fire properly won't they? Is there a way of making them readable both with Notepad ++ and the old notepad?
No need to worry. Code is code. The formatting isn't any concern since I could write a whole application with it's code on one line (through it would be a pain) and it would work.

If you want post the Two_Fronts.txt here and I'll look at it during lunch. But as I said, the code will work regardless (But I'm curious now).
 

Amallric

Field Marshal
4 Badges
May 18, 2008
4.423
267
  • Arsenal of Democracy
  • Hearts of Iron III
  • Europa Universalis IV
  • 500k Club
mm looking at his screen I'd say the problem is with end of line characters and not formatting, and i'm pretty sure the game engine is not completely unsensitive to those.
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
I'm not sure how they are loading the game. If they're using a stream then parsing, line by line then parsing, or something else. So EOL might not make a difference. When I parse the file(s) I stream it all in then parse it by sections (not relying on EOL). The \r\n is a return then new line command. If Notepad++ has a \r\n beginning at character 1050 then Notepad (having a line length of only 1025) would do wrap the line at 1025 then do the carriage return.

I'm willing to look at the Two_Font.txt to see what it is. I'm curious to see.
 

FOARP

Field Marshal
49 Badges
Sep 10, 2008
6.137
4.022
  • Crusader Kings II
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sword of the Stars
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Naval War: Arctic Circle
  • Magicka
  • Heir to the Throne
  • Hearts of Iron III
  • Gettysburg
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Arsenal of Democracy
  • 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 III
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Expansion Pass
  • Steel Division: Normandy 44 -  Back to Hell
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
@Julie - I'm afraid the file's a bit too big to PM (460,000+ characters). Although the problem appears to have been introduced by the events made using Notepad++ (i.e., the final ten events) the error message points to a line somewhere in the middle of the file - although this does not seem to have anything wrong with it - the line is a commented-out title. Do you have an email address I can send it to?
 
Last edited:

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Sure do, just create it. Ensure you zip it up :)

"julesbuyonline-forum001@yahoo.com" (it's good for a day then goes away...remove the "...didn't want the hyperlink to be use for spam)
 

Autolykos

First Lieutenant
71 Badges
Oct 21, 2010
206
8
  • Arsenal of Democracy
  • Sword of the Stars
  • Magicka
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • A Game of Dwarves
  • Darkest Hour
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Victoria 2
  • War of the Roses
  • 500k Club
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Death or Dishonor
  • Mount & Blade: With Fire and Sword
  • Pillars of Eternity
  • Prison Architect
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Surviving Mars
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines Industries
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH: Season pass
  • Cities: Skylines - Parklife Pre-Order
  • Teleglitch: Die More Edition
  • BATTLETECH: Flashpoint
  • Surviving Mars: First Colony Edition
  • Europa Universalis III Complete
  • Hearts of Iron IV: Expansion Pass
  • BATTLETECH: Heavy Metal
  • Cities: Skylines - Campus
  • Europa Universalis III Complete
  • Surviving Mars: First Colony Edition
  • BATTLETECH - Digital Deluxe Edition
  • For the Motherland
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Semper Fi
What character encoding (ASCII, UTF-8, ...) does Notepad++ use? I don't know about AoD specifically, but some games (like Rome: Total War) are quite picky with this.
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
I use ANSI and haven't had any issues. Another trick is to use Notepad++ and select C, C#, or C++ so that it formats the script(s).

FOARP, I'm downloading your file/scenario now (51.6 MB) and will look at it at lunch (GMT -8) today.