Revert parts of ascii_to_model.py to better support RCRA#17
Conversation
Fixed some breaking issues for model reimporting specific to RCRA. Sadly, a good chunk of the fixes involved reverting code to 0.3.1, the last release that worked for the game insofar as my tests. Also had to omit the mesh clearing method because otherwise the game would crash for me after enough elapsed time.
|
Hello! Thanks for your interest in fixing the script! I'd like to request some revisions to your changes before this can be pulled. First off, as you mention yourself, this script is supposed to work with other games too, so I'd like it not affect these. It could be done somewhat like this: So, instead of reverting I find the The change from I guess what you could do is overwrite the flag value after it's original assignment somewhat like that: When I tried to run the script with your changes, I've got the following error: Maybe you've got some weird version of Python that doesn't care about tabs and spaces being mixed up, but I don't. Either that, or you didn't even test the change. Please test your changes before submitting a PR. And finally, I've tried the script on a few models locally, by simply injecting .ascii back, and they still appear broken in game. I actually see no difference, even though there are changes to the binary. Can you provide information on how you tested your change? What models did you test, what were the changes, etc. I'd also like to see the before/after screenshots, showing that what was broken in the old version of the script now isn't. If you did modify .ascii and/or .materials.txt before injecting them back, please provide them too, so I can verify it on my side. |
|
Oh, didn’t expect you to respond so quickly, thank you for that. Ah, good to know some of the models you tested with are still broken…maybe for the sake of making sure we have the same code and tests, which Rift Apart models did you test? As my edit is now, I verified it can reimport ascii, both intentionally modified and otherwise, based on the Goons-4-Less models without any problems, sans any pre-importing modifications that cause rigging weirdness, whereas with the original code, not only would the vertices be all over the place, I’d be lucky if the game didn’t crash after only a few seconds of the model loaded, hence, why I had to skip the mesh clearing method you used in the code in particular. Regardless, if we do have the same code and test files, I’ll address the rest of your feedback then to avoid any further premature actions, because if it really is still broken, then it may be worth investigating further before I commit (no pun intended) to making a PR… |
|
Take it back: I’ll respond to your second-to-last comment. I thought I had fixed the tabbing issue before I committed: apologies for that. Will verify which line it is and then try to recommit. |
|
I've tested they are conveniently in the game's gallery, so it's quick to test |
Formatting fix: thanks to Tkachov for informing me that somehow a line was incorrectly tabbed before I committed this copy.
Understood. I'll check those next, then. |
Alright, looked into Zircon Jr. and the Civilian just now. Strangely enough, the only problem I see is the lack of texture color for Zircon Jr., and even there, that might be the typical rendering issues on this Mac...will confirm that much on another machine later, but the geometry, my biggest concern, seems fine to me for both of them.... EDIT: Figured out why the inconsistency. Sending a third commit soon. |
Formatting fixes: I fully admit my first commit involved attempting to circumvent some inefficient coding practices I resorted to, to the point that it was producing different results than I intended. This should also address one of the coding convention issues noted.
|
Now that the code I verified is functionally identical to what I was running locally, I'm ready to address your other points:
|
|
I've checked my .stage files with older Overstrike versions and then models appear fine (made with either latest version of the script or your change). It seems the way it's currently being installed somehow affects models. |
Sadly, yeah, I noticed the same problem insofar as what version you install with, though that pretty much goes for any assets edited using this suite, as well as some tools by others…needless to say, I’ve been using Overstrike 1.5.1 and its corresponding version of ModdingTool for the sake of compatibility with the various tools out there. |
|
I've updated Modding Tool (1.4.5), it now correctly extracts RCRA assets in STG containers (which were added for MSM2 last year). This means correctly extracted assets are correctly installed with latest Overstrike (1.7.2). Since 'main' branch of this repo wasn't updated to support STG, I've made a new branch, 'rcra', that has STG support. There are model<->ascii scripts in that branch too, and I've tested that these work with 'npc_civ_robot_01.model' just fine. Feel free to test these scripts and updated tools, and tweak the scripts in 'rcra' branch any way you'd like as these don't have to support other games anymore. |
|
Thanks for the updates! |
Fixed some breaking issues for model reimporting specific to RCRA. Sadly, a good chunk of the fixes involved reverting code to 0.3.1, the last release that worked for the game insofar as my tests. Also had to omit the mesh clearing method because otherwise the game would crash for me after enough elapsed time. Revisions for the sake of compatibility with other games are welcome.