ark-tools
ark-tools copied to clipboard
Hibernation state reading crash
Since the latest patch, the tools no longer work. I have been using it for years to export data for display on a website. It appears as though the project is now abandoned. I hope that is not the case because this is a great tool for many uses. Below is the error you get no matter what you try to do.
java.lang.UnsupportedOperationException
at qowyn.ark.ArkSavegame.readBinaryHibernation(ArkSavegame.java:387)
at qowyn.ark.ArkSavegame.readBinary(ArkSavegame.java:172)
at qowyn.ark.FileFormatBase.readBinary(FileFormatBase.java:30)
at qowyn.ark.ArkSavegame.<init>(ArkSavegame.java:87)
at qowyn.ark.tools.EditingCommands.exportThing(EditingCommands.java:145)
at qowyn.ark.tools.App.main(App.java:125)
I have updated my JRE to the latest and no change, so I am assuming that this is a change to the save format.
I get the same error when trying to read wild dino info
@The-Great-Sephiroth and @stolenvw, if you would like to get it sorta working, you can comment out the lines of code: 385 to 388. I was able to create json using this. If you really want, I can create a fork.
@The-Great-Sephiroth and @stolenvw, if you would like to get it sorta working, you can comment out the lines of code: 385 to 388. I was able to create json using this. If you really want, I can create a fork.
Hi
thank you very much for doing this :)
I've attempted to package your fork to use ark-tools.exe (although Im am not very familiar with what I am doing so may be doing something wrong) but after mvn package it I get an
Error: Could not find or load main class qowyn.ark.tools.App
can you spot what I am doing wrong please
thanks!
@The-Great-Sephiroth and @stolenvw, if you would like to get it sorta working, you can comment out the lines of code: 385 to 388. I was able to create json using this. If you really want, I can create a fork.
Hi
thank you very much for doing this :)
I've attempted to package your fork to use ark-tools.exe (although Im am not very familiar with what I am doing so may be doing something wrong) but after mvn package it I get an
Error: Could not find or load main class qowyn.ark.tools.App
can you spot what I am doing wrong please
thanks!
Rather than make you struggle with downloading both of the projects, here is a packaged JAR that is working.
The fork was updated if you are interested in the changes.
fantastic, thank you very much!
The fork was updated if you are interested in the changes.
sorry to bother you again, Ive just had the below on trying to do a m2j
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at qowyn.ark.ArkArchive.getString(ArkArchive.java:198)
at qowyn.ark.properties.PropertyStr.
does that mean anything to you?
@comical-uk yeah. That was the issue I was fixing in the most recent change. Can I ask you to install Java 8? If not, I can modify it further.
@comical-uk additionally, I just found that this exists yesterday while browsing Reddit: https://drive.google.com/file/d/1h1b9D1dkaGhUBTirywN0gFNZ32QjrTMU/view?usp=sharing
It's a full UI for this. It was ported to C#. I don't think you're gonna run into the same issue.
@comical-uk additionally, I just found that this exists yesterday while browsing Reddit: https://drive.google.com/file/d/1h1b9D1dkaGhUBTirywN0gFNZ32QjrTMU/view?usp=sharing
It's a full UI for this. It was ported to C#. I don't think you're gonna run into the same issue.
thanks. I'm on Java 8u351
the ASV is a fantastic tool, I was just using the ark-tools to be able to convert it back into a .ark afterward for a few things
@comical-uk yeah. That was the issue I was fixing in the most recent change. Can I ask you to install Java 8? If not, I can modify it further.
How to fix issue, I am on java 8
Rather than make you struggle with downloading both of the projects, here is a packaged JAR that is working.
didn't fix anything sadly, I'm getting even more errors with that one
Rather than make you struggle with downloading both of the projects, here is a packaged JAR that is working. Here is a direct link to it in Google Drive
didn't fix anything sadly, I'm getting even more errors with that one
So, for anyone who wants to get this working again, I'm willing to put in some effort to help you with it. Since it works for me, this will require some effort, and back and forth with someone who has a version that isn't working.
If you'd like to work with me to get it working, feel free to join my discord LINK and ping SATAN. Or just write something to the degree of wanting to help, since I get push notifications on my phone for that server.
This Updated JAR I used after downloading java 8 on a fresh Windows 10 virtual machine. It should be working. I did make a few changes regarding the errors seen above.
So, for anyone who wants to get this working again, I'm willing to put in some effort to help you with it. Since it works for me, this will require some effort, and back and forth with someone who has a version that isn't working.
If you'd like to work with me to get it working, feel free to join my discord LINK and ping SATAN. Or just write something to the degree of wanting to help, since I get push notifications on my phone for that server.
thank you very much for the kind offer
I'd gladly help test, I used to use it a lot both to convert from the map saves and then to convert back into the map saves
I'm going to be out for a few hours today though :)
Just updated the JAR Same Link.
It now works for j2m as well. Same issues with m2j. Just some outdated library getting confused because it's overloaded. Some casting to fix it.
hey, thats seem to work fine converting them from the files that i've tested
however if I take a map save, then m2j and then j2m (without changes) then I get an error starting the server
the server starts fine normally, but not on a (fresh) map thats been m2j'd and then j2m'd
hey, thats seem to work fine converting them from the files that i've tested
however if I take a map save, then m2j and then j2m (without changes) then I get an error starting the server
the server starts fine normally, but not on a (fresh) map thats been m2j'd and then j2m'd
Can you open task manager while running the game? Idk if the error message is bad, but it's indicating it's an out of memory error.
Just updated the JAR Same Link.
It now works for j2m as well. Same issues with m2j. Just some outdated library getting confused because it's overloaded. Some casting to fix it.
thanks for the effort, I could m2j with this fix but I noticed the json is much smaller than usual. upon looking into it, it appears all creatures out of render range are missing from the json
it still helped me recover some of the data I needed so I am grateful nonetheless, god bless
hey, thats seem to work fine converting them from the files that i've tested however if I take a map save, then m2j and then j2m (without changes) then I get an error starting the server the server starts fine normally, but not on a (fresh) map thats been m2j'd and then j2m'd
Can you open task manager while running the game? Idk if the error message is bad, but it's indicating it's an out of memory error.
sorry missed this. it goes up to 7gb, then down to 3.5gb. plenty of memory left on the host when it crashes
thanks
Just updated the JAR Same Link. It now works for j2m as well. Same issues with m2j. Just some outdated library getting confused because it's overloaded. Some casting to fix it.
thanks for the effort, I could m2j with this fix but I noticed the json is much smaller than usual. upon looking into it, it appears all creatures out of render range are missing from the json
it still helped me recover some of the data I needed so I am grateful nonetheless, god bless
Thanks for the reply. I will look into it, but I'm no expert when it comes to byte analysis. That's why not many people have done this, and Qowyn's stuff is still important.
I've basically commented out an error saying there is an issue with the hibernated creatures being read to get anything to work at all.
So, for now, this is probably as good as I can get it. I'll continue to poke at it now and then though.
no worries, thanks for your efforts!
I have not signed into Github in ages and just saw the notification for this. I deciphered a lot of the old Daggerfall BSA format back in the day (all binary formats) and can try to help, but it's been a decade or more since I did so.
i have made a fork that fixes this completly and adds support for reading cryopot data
https://github.com/Qowyn/ark-tools/issues/47#issuecomment-1312846926 this is because it sets the hibernated objects to -1 and thats overflows so it tries to allocate a lot of memory for nothing that also explains the high file size
@Alexander3a did you make the fork public? Can you share a link? I don't see it on your page or on the forks page of this repo.
i have made a fork that fixes this completly and adds support for reading cryopot data
@AkitaAttribute its not a "proper" fork since i basicly merged the ark-tools and toolkit into one project so i dont have to edit them seperatly i may split it again to make a proper fork if there is enough interesst in the source but at the moment it seems pretty useless i woud be happy to give out the compiled jar file if you need it
@Alexander3a is it published on GH? I can compile it myself, unless you would rather not make it public.
@AkitaAttribute do your have a discord i coud add you or something?