Moving To Discord: https://discord.gg/UmXNvjq

Hello everyone, due to bugs with the forum software that I do not have time to care about, I am going to be shutting down these forums and moving my discussions to Discord instead. I will eventually keep releases here on the site but the forums will be removed sooner or later. I encourage people to join my personal Discord if you have questions, if you are looking for any of my projects, etc.




Registration Code (Part 1): w%kQ6
Registration Code (Part 2): b<#$1[*(cw~
In order to register on this forum, you must use the codes above. Combine them into one code (copy paste).

KoA: Reckoning - 010 Editor Templates/Scripts

Information related to the single-player game, Kingdoms of Amalur: Reckoning.
Locked
User avatar
atom0s
Site Admin
Posts: 449
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

KoA: Reckoning - 010 Editor Templates/Scripts

Post by atom0s » Wed Dec 25, 2019 8:03 am

Here is a simple script to read the 'xp_to_level_table' entry inside of the compiled lua_bxml file:
  1. // Read and print the table name..
  2. local int table_name_len = ReadByte(FTell());
  3. FSeek(FTell() + 1);
  4. local string table_name = ReadString(FTell(), table_name_len);
  5. FSeek(FTell() + table_name_len);
  6. Printf("String Length: %d\n", table_name_len);
  7. Printf("String       : %s\n", table_name);
  8.  
  9. // Read the entries..
  10. local int index = 0;
  11. local int x = 0;
  12. local int entry_t = 0;
  13. local int entry_v = 0;
  14.  
  15. for (x = 0; x < 46; x++)
  16. {
  17.     BigEndian();
  18.     entry_t = ReadByte(FTell());
  19.     entry_v = ReadUInt(FTell() + 1);
  20.     LittleEndian();
  21.     Printf("Type: %d || Index: %d || Value %d\n", entry_t, index, entry_v);
  22.     FSeek(FTell() + 5);
  23.     index++;
  24. }
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Locked

Who is online

Users browsing this forum: No registered users and 1 guest