#๐Ÿ”’ ๐Ÿ”’ EUIV game file bath text editing script help wanted :)

37 messages ยท Page 1 of 1 (latest)

grim pecanBOT
#

@compact bear

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

ashen notch
#

where is the content?

quiet sphinx
#

@compact bear you should use the pastebin instead of trying to upload a file.

#

!paste

grim pecanBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

compact bear
#

Oh snap did i not link my python in the post i swear i did

#

Or should i add the game filethere too

quiet sphinx
#

Just copy-paste the code into the pastebin site, click Save, and then copy the new URL here so we can see it.

compact bear
#

Thats the game file

#

Thats my "script"

#

i swear i added the script though. I did attach the game file however

quiet sphinx
#

Yeah, most attachments are blocked. Text is better.

#

So, what's the issue, exactly?

compact bear
#

Oh yeh sorry forgot that poart im all flustered

#

So basically when it gets ran it struggles to identify the conditonal modifier sections and then because of that it doesnt recognise the modifier section within to start moving the modifiers to right right place.

#

I also get permission denied errors too randomly

quiet sphinx
# compact bear https://paste.pythondiscord.com/OJ6A

I see that this file is close to being JSON, but not exactly.
And you have a lot of code that tries the interpret this format.

Have you considered converting to JSON for the storage format? It would certainly make loading and writing data simpler.

compact bear
#

I dont know how well paradox games like that sorta thing. Does the term YAML mean anything toy ou?

quiet sphinx
#

Yes, YAML can also be interpreted directly

#

!pip pyyaml

grim pecanBOT
#

YAML parser and emitter for Python

Released on <t:1722976430:D>.

compact bear
#

I only say that becuase one guy who made a file that did somethning else had commented this

#

The FUCKING Paradox made yaml non-standard and it has quote like key: "He said: "I love you""

Cannot use normal yaml

quiet sphinx
#

Interesting

compact bear
#

and so becuase im clueless ive just dealt with the files as they are becuase i dont wanna do all this tuff and have ti not be read by the game

#

Heres how another guy performed a different but relevant task on the same files. AI said it was archaic.

quiet sphinx
#

AI makes gibberish, I wouldn't give it much credence

compact bear
#

I learnt that the hard way i eventually got it to make a functioning script but my dumbass ran the files sucesfully loaded them up into the game and got stuck playing the game for 6 hours and now when im trying to do more work on it i cannot workout what file it is what and the file i think it is stiopped working with newer monument files becuase maybe the file struycture is differnet?

#

Regardless relying so much on Ai has made this whole exercise harder and more furstrating than it shoulkd have hbeen but i was too scared to ask actual pros becuase im legit babby with scripting and all i anna do is this simple task. But im frustrated enough now to ask for help

#

I should nmention the Ai im using is Claude 3.5 and sometimes chatgpt 4o on github co pilot via VSC

grim pecanBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ EUIV game file bath text editing script help wanted :)

#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.