• 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
47 Badges
Sep 10, 2008
6.153
4.090
  • 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
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III
  • Darkest Hour
  • Arsenal of Democracy
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Art of War
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Victoria 2
  • Steel Division: Normandy 44
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Mount & Blade: Warband
  • 500k Club
  • Warlock: Master of the Arcane
  • 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.
 
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.
 
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:
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).
 
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.
 
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.
 
@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:
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)
 
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.
 
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.