Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Nuclear Throne Together

An online multiplayer mod for Nuclear Throne. · By YellowAfterlife

Modded characters not working.

A topic by AbsoluteZeroHero created Nov 12, 2017 Views: 1,648 Replies: 18
Viewing posts 1 to 11
(1 edit)

I have noticed  mods that add characters crash when you select  them and I got this error message form one of them.

___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of  Step Event1
for object MiscCont:

array_get :: Index [17,14] out of range [18,14]
############################################################################################
--------------------------------------------------------------------------------------------
called from - gml_Script_dp_state_hx17 (line 2)
called from - gml_Script_dp_player_hx19 (line 29)
called from - gml_Script_dp_flow_hx22 (line 10)
called from - gml_Script_dp_flow_hx27 (line 17)
called from - gml_Script_dp_flow_hx28 (line 1)
called from - gml_Script_dp_event_update (line 5)
called from - gml_Object_MiscCont_Step_1 (line 41)

I'm asking what does it mean because I have got this same message form other custom characters. Is it because you changed how custom characters load? 

Developer

Does it always happen with mod in question, and if so, which mod is it? That error is pointing towards code that has nothing to do with custom characters.

1problema  solucionado solo vuevlan a ingresear el codigo 2 veses ejemplo: /load chaos enter, despues /load chaos enter

yeah I tried it with the dasher, molesarge , and characters form the ultra mod. I got that message every time.

Developer

I have tested but cannot reproduce that error. Have you tried verifying integrity of game files and then reinstalling NTT?

alright I will try that.

OK I managed to get the dasher mod to work once before it crashed the game. Then every time after it just continued to give me the same error message as before. I'm not sure why custom characters don't work for me do I have to reinstall Nuclear Throne?   

Developer

Well, if things work for other people, but don't work for you, it is a valid bet to try reinstalling the game just in case it is corrupted or anything.

All right I will try just that. Also could you tell me what the error message means maybe it has some thing to do with that.

Developer (1 edit)

What the error message says is that an array read operation went outside of boundaries in the array.

Array index that it states (row 17, column 14) does not match up with what is written in code of the said function (column 11 in a single-row array), which led me to conclude that your game files are corrupt.

The rest of the error message states that it originates from a destructor function in an input state (which hold polled buttons/etc for mods to get via API later), which was called by a "update inputs" function on a player object (which destroys the previous input state before it makes a new one), which was called by a bunch of other internal functions finally coming to the pre-update function in the code that handles modding API.

What do you think would be the cause of such an error? Because I still get the message even though I uninstalled and reinstall NT and NTT.

Developer

As I have said, the only cause of error that I can think of is corruption, because there's no other way it would not match up with actual code.

For clarity, did you verify integrity of game files via Steam, and then downloaded and installed a fresh copy of NTT?

Yeah I uninstalled NT deleted everything then reinstalled and assembled the NTT file but I still get the error message. I don't know what is wrong , other mods work but not custom characters. 

(1 edit)

I have been getting the exact same issue with both my mod characters (uninstalled, reinstalled and fresh downloads of both NT and NTT) I am making and others I have downloaded, even though I thought it was because one of my characters was pre-9921, as he worked with 9900. If you ask if it occurs with game play changing mods, it does not, as I am able to play the Hardmode mod just fine.

Theory: Maybe it's related to the save files where you're Nuclear Throne progress is saved in the users/name/appdata/local, testing this.

Edit: Definitely something to do with save files. I removed my whole nuclearthrone folder in that directory and my mod character worked perfectly fine, though I didn't check multiple times in a row to see if a write to the save messes it all up.

Developer

Oh, I see. In that case, if anyone can upload a save file that breaks things, that would be appreciated.

Alright, dropbox link: https://www.dropbox.com/sh/d2mva396ry5yve7/AABp59G1VGV33gvr7hLCoKHZa?dl=0

I have a good guess why the error occurs: With a save file that has all of the characters, the character array has an overflow when you choose the mod character.

Developer (1 edit) (+1)

The issue seems to be that you somehow have the "random" crown selected for custom characters (which share the save data), logic for which was never finalized because it was not pickable via UI anyway. Opening the loadout and picking other crown (e.g. "none") fixes the issue. I'll see about doing something with this for next update though.

Error text had no relation to the issue whatsoever, likely shown due to absence of debug information for part where the issue occurred.

1.solo pon el codigo otra vez