|
Post by Valky on Jun 26, 2016 8:28:33 GMT
Hey there! I am trying to edit the oasisstrings file, to get propper folder names in my mod. Reason: If you choose a folder (for example: "weapons" in the modded folder-tree) it will change your view to the original "weapons" folder. I found some lines: 577 - Editor Buttons / Tools / Description 1735 - Editor Buttons / Description in the main-menu of the main-game 9450 - Description in the main-menu of the main-game 16732 - Editor Folder names I tryed out some things yet - but nothing looks like it would work.... For example: <string enum="0x6093F939" id="245384" value="Civilization" /> >> Can someone tell me what i need to change in enum="" ?Thanks! Fino PS: I know the bug with the lip-sync if i edit this file - but this is a editor mod and there wont speak anyone
|
|
|
Post by JRavens on Jun 26, 2016 14:42:01 GMT
You should not touch the string enum or ID. Only change the value. What tool are you using to convert the strings back? I have to find my notes for that as well because it took some jury-rigging on our part to even get it to work... and I think bon and PJ found a solution to the lip synch issue. EDIT - here is the lip-synch work around: farcrymods.freeforums.net/thread/8/modding-104-talk-restoring-synch
|
|
|
Post by pj on Jun 26, 2016 15:08:26 GMT
Not sure that I completely understand you here, LF: 1). The line numbers you've quoted don't match up with any lines in the default oasis xml file - maybe the German file is differently arranged? 2). I'm opening an old map, using your Editor v23.3, and I see nothing wrong with the right-side Object Browser. What you say happens (the second line of your post above) doesn't seem to happen on my machine...
The default Weapons folder appears under 6 - Weapons, with 01 - Ammo & Pickups, 02 - Weapons, and 03 - Turrets - exactly as normal.
Your Weapons folder shows at the bottom, and is under 7 - Misc, with the actual Weapons under 06 - Weapons, and the same 01, 02 and 03 under that. The weapons and ammo in those folders are all your mod objects.
When I choose the Weapons folder in the modded folder-tree - it doesn't change my view to the original weapons folder.
Perhaps this is an issue in the 16.06.23.5 version, which I haven't tried yet?
|
|
|
Post by Valky on Jun 26, 2016 15:39:14 GMT
>> You should not touch the string enum or ID. Only change the value. The reason why i want to do this, is because i wish to create own Names. For example, in v26.1 i have the unnamed folder under "Weapons" and want to ccreate a name for that. I dont want to change any value, only add new Do you know how to do this? >> What tool are you using to convert the strings back? If have created a little tool (its more an update for gibbed's binary object converter) with python to convert the stuff with help of already known strings. but its a bit buggy. i had to rename manually stuff with razor's hash converter to find that what i know of this oasisstings file. It's not much ... and a hard work i dont like it at all... are there any tools out?? dint find any
1). The line numbers you've quoted don't match up with any lines in the default oasis xml file - maybe the German file is differently arranged? No, i didnt use the german one, it's the english one. I think this could be because i took it from the 1.6 version of FC4. it's just for testing do you have an actual, uncompressed version? 2). I'm opening an old map, using your Editor v23.3, and I see nothing wrong with the right-side Object Browser. What you say happens (the second line of your post above) doesn't seem to happen on my machine... What i mean is: You take for example an object from my 06 - Weapons folder with the modded weapons and place some in. Ok, everything is nice. Now you want to adjust an angle of one of those weapons or adjust gameplay settings and click away from the object brower into another tool. Everything done? Ok, back to the object browser to place in more modded weapons .... but the directory changed to the default weapons - because the folders share the same oasisstring ID.
|
|
|
Post by pj on Jun 26, 2016 16:29:13 GMT
(Reverse order, perhaps, but...) 2). Aaaaahhhh Yes - gotcha! That's exactly what happened in my test a few minutes ago.... I think - at THIS moment, anyway - the best/easiest course is just to click on the "Select", click on one of the (mod) weapons you previously placed, and "Go to Object", as that takes one directly back to the modded weapons browser. Creating a new name is a lot more problematical than inconvenience, because..... 1). It is never a "good thing" to mix versions - especially one as complex as FC4. You are running a "4 revisions behind" oasis file, and this one has an huge impact for everything said, or anything which is shown on-screen. As we Ubisoft customers don't have much say in whether we want to update our game to the next version, I reckon that 99% of the game and map players are going to be using version 1.10.0 - and writing or using files from earlier version of the game is just begging for "complications".... The problem with changing the file is that (and remember - I am !!NOT!! any kind of expert in this) it's encoded and compressed - and it's a dictionary compression, which means it reconstructs from that same dictionary which was created when it was unpacked. As JR said above - you should change only the "value" - this will stick, for e.g changing "Rocks" to "Elvis Presley Rocks" will work, but the id and enum values are (pretty much) locked. (There is some limited editing which can be done using hex, but it is tedious, and trial and error, and may not work for all of the things you want to change - but that doesn't help you). I have never had the need to add anything to oasis, but adding fields is verboten, I think. JR knows a heck of a lot more than I do about this, and he may have some greater insight into the tools needed to work on the file. www.dropbox.com/s/ov054afy9z22294/oasis.zip?dl=0Contains the original Oasis, the unpacked file, and the repacked file. "Rocks" has been changed.....
|
|
|
Post by Valky on Jun 26, 2016 16:44:52 GMT
thanks for the reply yea i took 1.6 because it was last version i could unpack and decrypt this oasis file. If i try to unpack and decrypt a higher version it crashes.... I had a look into yours. I tried just for fun to change a value - but i cant repack it, it crashes again. What do you use for this? Is there something out to unpack / pack this oasis strings file? never saw something and it looks like you got something Can i maybe ask you to share this with me? ..or do you have an idea how to repack the file? Thanks anyway! EDIT: >> I reckon that 99% of the game and map players are going to be using version 1.10.0 - and writing or using files from earlier version of the game is just begging for "complications".... That's why i wrote "it's just for testing" - i will never use stuff from old versions
|
|
|
Post by JRavens on Jun 27, 2016 4:37:35 GMT
>The reason why i want to do this, is because i wish to create own Names Ah I see now you want to ADD new entries. No I honestly don't know how to do that. In experimenting with the Oasis file we found it to be very... particular about the structure. The game engine references the ID values for the various words & phrases. This is of course how they localize games and so they can use one ID pointer to represent the same word in multiple languages. Honestly I'm not 100% sure how enumeration works with this file (enum entries) >What do you use for this? Is there something out to unpack / pack this oasis strings file? never saw something and it looks like you got something Indeed there is another tool though I have not tried it on the 1.10 file I'm pretty sure PJ and Bontainer did use it on that file as well. I never linked the file publicly because I didn't have permission from the original author nor the modder who modified it to work with FC4. Seeing as I cannot find it anywhere online and so much time has passed perhaps I shouldn't be so wary. I will add it here for you. If anyone ever finds it and asks me to take it down I will, but at the moment I don't think there is any other way to get it As I recall this works just like the Dunia tools - you drop the Oasis.bin on it to decode, change the XML and then drop it back on the same file to re-encode. Obviously this is for changing EXISTING entries. I have no idea how or if adding new entries would work. Also using this file creates the lipsynch bug and a few other minor glitches that relate to displayed text in some of the menus. (another reason I never distributed it - because it's buggy and doesn't 100% re-encode the file correctly ) Attachment: JGR.Dunia2.ConvertXml.zip (111.81 KB)
|
|
|
Post by Valky on Jun 27, 2016 7:21:26 GMT
Hii mate, thanks for that I found and got an example from the oasisstrings converter - but thanks! The person told me, not to share the software - so i will not update the Modding 100 Tools thread with it. >> Honestly I'm not 100% sure how enumeration works with this file (enum entries) I got it to work It's really really easy, if you now the encryption I have created some own lines - and this includes those enum and id. Have a look at my work here: Link to thread: farcrymods.freeforums.net/thread/369/mod-working-onLink to picture: i68.tinypic.com/2nvgeg1.jpg Encryption: CRC32 Language: Hexadecimal How to decrypt: I am currently using a python script for decryption and i am bruteforcing it. - - - - - - - - - - - - Create new entries:Encrypted Example Entry:<string enum="0xD627878A" id="999999" value="Fino4 - v16.6.27.1" /> Decrypted Example Entry:<string string="Fino4" id="999999" value="Fino4 - v16.6.27.1" /> ID will be used in 'speechlength.bin'
|
|
|
Post by JRavens on Jun 27, 2016 12:06:25 GMT
Wow you are lightyears ahead of me my friend! I could never figure this out before. I'm not a programmer (not even python) so no idea how to do this. Great work Fino!
|
|
|
Post by Valky on Jun 27, 2016 12:16:56 GMT
I am not the best in programming but BTW: i got here something for the editor title...
|
|
|
Post by predaaator on Jun 27, 2016 16:18:03 GMT
I am not the best in programming but BTW: i got here something for the editor title... Your discovers are greats!!, if you find the way to add more waves and new missions please let us know Is there a way to increase the amount NPC in the game, I mean to add a lot of encounters?
|
|
|
Post by Valky on Jun 27, 2016 16:36:51 GMT
>> Your discovers are greats!!Thank you >> if you find the way to add more waves and new missions please let us know At the moment i dont think it's possible... >> Is there a way to increase the amount NPC in the game, I mean to add a lot of encounters?I never had an issue to incrase the amount. The "budget" is just a approximated value, because no computer is the same (mostly). I have in my maps (i mean The Golden Squad Mission 0-5) at 2 or 3 maps over 100 npc. Plus there is wildlife too and i never had an issue.
|
|
|
Post by predaaator on Jun 27, 2016 17:18:47 GMT
>> Is there a way to increase the amount NPC in the game, I mean to add a lot of encounters?I never had an issue to incrase the amount. The "budget" is just a approximated value, because no computer is the same (mostly). I have in my maps (i mean The Golden Squad Mission 0-5) at 2 or 3 maps over 100 npc. Plus there is wildlife too and i never had an issue. I mean in the main game.
|
|
|
Post by Valky on Jun 27, 2016 17:33:01 GMT
ahh sorry, i dont know - i never tryed to mod the SP in the maingame.
|
|
|
Post by predaaator on Jun 29, 2016 6:14:54 GMT
Hi my friend, If you can add Arena NPCs (Army and animals) please let us know
|
|