Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Caesar IV DAT. File

Featured Replies

  • Author
  • Localization

p1isdead, posted Wed Aug 07, 2019 7:02 pm (50197)


Hey guys,
I'm trying to edit some strings of the province's names in this game, but i can't because there is an DAT. file that limits or "notes" when i change something in the XML. file. I don't know if there is something to do with SQL.

Image

The thing is, if want to change the text in the XML. file, i need to change it in the DAT. file first, like "Genoa" i want it to be "Genova", but there is an character limit in the DAT. file that i can't exceed. My question is if there is a way to increase the character limit or some proper software to it.

I attached the file so you guys can examine. Thanks!
  • Author
  • Localization

LokiReborn, posted Wed Aug 07, 2019 9:54 pm (50198)


p1isdead wrote:
Hey guys,
I'm trying to edit some strings of the province's names in this game, but i can't because there is an DAT. file that limits or "notes" when i change something in the XML. file. I don't know if there is something to do with SQL.

Image

The thing is, if want to change the text in the XML. file, i need to change it in the DAT. file first, like "Genoa" i want it to be "Genova", but there is an character limit in the DAT. file that i can't exceed. My question is if there is a way to increase the character limit or some proper software to it.

I attached the file so you guys can examine. Thanks!


What do you mean by a character limit, because I'm not sure that's the correct word? In the picture you should as long as you encode it to the value the way it expects it for unicode it would work fine. I looked at the file and it's a fairly simple format. If you wanted to change the length of a string though you also need to change the length specifier. Below is from the files start for the first 2 pieces of information

Code:
00 00 00 00 //Leading 4 0s
27 00 00 00 //Number of entries in little endian format

01 00 00 80 //static value at start of block
09 00 00 00 //length for unicode string, note unicode uses 2 bytes per character so 9 will consume 18 bytes
41 00 71 00 75 00 69 00 74 00 61 00 6E 00 69 00 61 00 //unicode string
01 00 00 80 //static after string
09 00 00 00 //length of unicode string
42 00 75 00 72 00 64 00 69 00 67 00 61 00 6C 00 61 00 //unicode string
D2 00 00 00 //unknown value 1, it relates to something outside of the dat. Potentially to the xml not included.
54 01 00 00 //unknown value 2, it relates to something outside of the dat. Potentially to the xml not included.
D2 00 00 00 //Repeat unknown 1
54 01 00 00 //Repeat unknown 2
0C 00 00 00 //static
0C 00 00 00 //static
0C 00 00 00 //static
0E 00 00 00 //static

01 00 00 80
06 00 00 00
41 00 72 00 61 00 62 00 69 00 61 00
01 00 00 80
06 00 00 00
42 00 6F 00 73 00 74 00 72 00 61 00
32 00 00 00
13 01 00 00
32 00 00 00
13 01 00 00
0C 00 00 00
0C 00 00 00
0C 00 00 00
0E 00 00 00
  • Author
  • Localization

p1isdead, posted Wed Aug 14, 2019 12:05 pm (50308)


LokiReborn wrote:
p1isdead wrote:
Hey guys,
I'm trying to edit some strings of the province's names in this game, but i can't because there is an DAT. file that limits or "notes" when i change something in the XML. file. I don't know if there is something to do with SQL.

Image

The thing is, if want to change the text in the XML. file, i need to change it in the DAT. file first, like "Genoa" i want it to be "Genova", but there is an character limit in the DAT. file that i can't exceed. My question is if there is a way to increase the character limit or some proper software to it.

I attached the file so you guys can examine. Thanks!


What do you mean by a character limit, because I'm not sure that's the correct word? In the picture you should as long as you encode it to the value the way it expects it for unicode it would work fine. I looked at the file and it's a fairly simple format. If you wanted to change the length of a string though you also need to change the length specifier. Below is from the files start for the first 2 pieces of information

Code:
00 00 00 00 //Leading 4 0s
27 00 00 00 //Number of entries in little endian format

01 00 00 80 //static value at start of block
09 00 00 00 //length for unicode string, note unicode uses 2 bytes per character so 9 will consume 18 bytes
41 00 71 00 75 00 69 00 74 00 61 00 6E 00 69 00 61 00 //unicode string
01 00 00 80 //static after string
09 00 00 00 //length of unicode string
42 00 75 00 72 00 64 00 69 00 67 00 61 00 6C 00 61 00 //unicode string
D2 00 00 00 //unknown value 1, it relates to something outside of the dat. Potentially to the xml not included.
54 01 00 00 //unknown value 2, it relates to something outside of the dat. Potentially to the xml not included.
D2 00 00 00 //Repeat unknown 1
54 01 00 00 //Repeat unknown 2
0C 00 00 00 //static
0C 00 00 00 //static
0C 00 00 00 //static
0E 00 00 00 //static

01 00 00 80
06 00 00 00
41 00 72 00 61 00 62 00 69 00 61 00
01 00 00 80
06 00 00 00
42 00 6F 00 73 00 74 00 72 00 61 00
32 00 00 00
13 01 00 00
32 00 00 00
13 01 00 00
0C 00 00 00
0C 00 00 00
0C 00 00 00
0E 00 00 00


That's it, thank you! I can increase the character limit now.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.