X4: Foundations

X4: Foundations

SirNukes Mod Support APIs
Gylfe Mar 13, 2022 @ 6:11am
permissions.json
I would like to thank you for your amazing work!

I was wondering if anyone can help me with an issue with sn mod support apis. I'm using the python server exe, which seems to be working, but it's telling me I have to add permissions for python send keys and python time api in the permissions.json.

I read through all of the read mes, but I just can't figure out what code I'm supposed to use to add the permissions. Around five mods aren't working including ones I really want like dynamic wars and ai subsystem targeting. I'm using the interworlds mod with it as well.

Here are the errors on the python server I'm getting:

Rejecting module due to missing permission:
content_id:
path: D:\Games\X4 Foundations\extensions\sn_mod_support_apis\python_send_keys.txt
To allow loading, enable this content_id in D:\Games\X4 Foundations\extensions\sn_mod_support_apis\permissions.json

Rejecting module due to permission:
content_id:
path: D:\Games\X4 Foundations\extensions\sn_mod_support_apis\python_time_api.txt
To allow loading, enable this content_id in D:\Games\X4 Foundations\extensions\sn_mod_support_apis\permissions.json

And then of course goes through restarting and giving these errors over again. I'm guessing this is why those five or six mods won't work. In game it gives an error that sn_mod_support_apis is not present, but it is in the extensions list and shows that it's working in game.

I appreciate any help!

I'm on version 4.2 with the latest interworlds version .55.
< >
Showing 1-2 of 2 comments
SirNukes  [developer] Mar 14, 2022 @ 7:45pm 
That blank "content_id:" entry is strange; it should match the content.xml file id "ws_2042901274". A couple things you could try:
- double check the mod_support_apis/content.xml id field looks correct, and there are no other "id" fields in the file.
- in the permissions.json file, give permission to a blank id, eg. "": true
Gylfe Jun 8, 2022 @ 2:37pm 
Thank you! I got it working finally, I think a couple of the mods I was using were out of date. Thanks again for your response!
< >
Showing 1-2 of 2 comments
Per page: 1530 50