So I'm trying to expand my modding abilities, and with cgbug's RO pet mod I thought it would be a fun way to start messing around to make good looking combat pets. Opening up the generic monstertypes I tried giving the Alice pet some attacks since at the moment she kinda just sits there and looks pretty. Giving her a ranged attack didn't do anything, but monsters touching her took damage. Giving her melee attacks gave her the proper behavior just like regular captured monsters, but the moment she makes contact her and the monster freezes. They sit there until I beam up to the ship only to find out the map crashes when I beam down, thus leading me to reset the game. So my question is, how does one step by step make a modded monster with attacks properly? What are some important functions of monsters should one know when dealing with it? Do I have to deal with .luas at all? Of course the overaching goal here is to just take these "fiendly" pets like the ones in the mod or the dog and maybe give them an attack or two, but I really don't know where to start. Thanks to anyone that can help!
Hmmm actually I haven't, I just kinda assumed I did something I wasn't supposed to do, I can recreate the event and get the log really quick. Code: Error: Exception while invoking lua method 'main'. LuaException: [string "/monsters/ground/meleeAttack.lua"]:12: MapException: Key 'melee' not found in OrderedMap::get() 009983EF starbound_opengl.exe 0081A99D starbound_opengl.exe 0081B2BE starbound_opengl.exe 006D1338 starbound_opengl.exe 00770129 starbound_opengl.exe 0088E0CF starbound_opengl.exe 00892863 starbound_opengl.exe 6D785C8F lua52.dll 284B0DB8 0 2B8B7A90 0 03B7C8B8 0 6D78F898 lua52.dll 16AD2C30 0 16AD2B80 0 2B8B7A90 0 16AD2C10 0 0088DE9B starbound_opengl.exe 008922A6 starbound_opengl.exe 00892452 starbound_opengl.exe 008924EC starbound_opengl.exe 0058A930 starbound_opengl.exe 0064BB73 starbound_opengl.exe 0065525C starbound_opengl.exe 00655928 starbound_opengl.exe 009A2BFC starbound_opengl.exe 7661336A KERNEL32.dll 77679F72 ntdll.dll 77679F45 ntdll.dll Error: WorldServerThread exception caught: MapException: Key 'melee' not found in OrderedMap::indexOf() 0081B1F8 starbound_opengl.exe 006D1B4A starbound_opengl.exe 005898A4 starbound_opengl.exe 00589929 starbound_opengl.exe 0063CC30 starbound_opengl.exe 0064C2CC starbound_opengl.exe 0065525C starbound_opengl.exe 00655928 starbound_opengl.exe 009A2BFC starbound_opengl.exe 7661336A KERNEL32.dll 77679F72 ntdll.dll 77679F45 ntdll.dll
MapExceptions are my least favorite kind of exception, because many things can cause that. You're going to have to upload your mod for us.
Alrighty, it's not really my mod perse, I have contacted the creator to help me as well. Waiting on his or her reply, but here's my edit of the mod. You need the tabula rasa, you need to craft Kafra for 1 pixel, get a capture pod ready, get the alice egg, place the egg, spawn the alice and capture it. It should only take 1 pod to catch it. If she attacks something it should recreate the event as described. If it means anything I also used the smartpet mod if you don't run into the same problems I'm having.