Asdow / JA2-ConvertXMLData

0 stars 0 forks source link

Doesn't work in Win7? #1

Open sevenfm opened 3 months ago

sevenfm commented 3 months ago

Crashes when trying to start under Windows 7. 2024-08-17_06-39-24

Asdow commented 3 months ago

Eugh.. Of course Rust has dropped win7 support and I can't figure out how to get it back.

I rewrote the WriteMercOpinions() in XML_opinions.cpp to output the new xml format as well so you could copy paste that function into JA2 code that still reads the old file. In JA2_options.ini there is a write profile data to xml setting. Contrary to what the docs say, IIRC you have to press new game button for it to actually be written to disk. The file will be MercOpinions out.xml in Profiles/UserProfile_JA2113/TABLEDATA/ folder, or whichever userprofile is set for your vfs_config

;------------------------------------------------------------------------------------------------------------------------------
; PROFEX (profile externalization)
;
; These settings allow data about character profiles to be read (and written) from XMLs instead of PROF.DAT. These XMLs are
; called "MercProfiles.XML" and "MercOpinions.XML". Unlike PROF.DAT, they can be edited by hand. 
; IMPORTANT NOTE: You must have the Profex ACTIVATED to be able to play with the NEW TRAIT SYSTEM!
;------------------------------------------------------------------------------------------------------------------------------

; If TRUE, reads "MercProfiles.XML" and "MercOpinions.XML" for profile data. 
; If FALSE, reads profile data from PROF.DAT.
READ_PROFILE_DATA_FROM_XML = TRUE

; When TRUE, this setting writes profile data from memory to XML before the game's Main Menu is reached.
; This can be used to write all data from PROF.DAT directly into XML format. Make sure that READ_PROFILE_DATA_FROM_XML
; is set to FALSE before doing this, otherwise you're simple creating a duplicate of an XML you already have.
WRITE_PROFILE_DATA_TO_XML = TRUE