Search the Community
Showing results for tags 'ons for'.
Found 1 result
-
Hey all, Sorry to have multiple posts on the front page, this is the first mod I've made and I've got lots of questions for lots of problems. The problem I'm having is adding a custom weapon (specifically, a spear) to a custom character that was working fine before I began coding in the spear. Anyways, in my other post I was having trouble with the inventory images not being located. I think I managed to fix that, because now I can login to the main menu with my custom character enabled, and start up a game and choose said character without a hitch. But as soon as the world begins to load, within seconds after choosing my character, I get a crash. The log, which I will attack below, gives me the error that it "could not find region "FROMNUM" from atlas "FROMNUM" it asks if the region is specified in that atlas. Well, I don't even know where a "Fromnum" atlas would be, I can't find it in any of the mod folders or anything (probably really stupid of me to be looking for this but oh well). I tried re-creating the atlas-0 and build.bin for the spear in the Anim folder, but to no success. I am at the end of my rope with this and could really use a more experienced pair of eyes to check my code. As said, this is my very first mod in LUA. It makes me feel really stupid because I've coded mods for minecraft in java before, although that has its place in a different forum. If ANYONE has any clue what I'm doing wrong here, and can point that out to me so I can get an idea of what to do better next time, that would be fantastic. Below I am attaching the modmain.lua, the prefab file for the spear, and the error log from the documents folder of my computer (Documents/klei/donotstarvetogether/) log.txt modmain.lua globestaff_aristotlemeans.lua