I got an error after trying to set a spawn location for a custom creature using Keira3 - azerothcore

I assume that Kiera3 is part of AzerothCore, so I thought it would be ok to ask here.
(https://i.stack.imgur.com/4XsKp.png) - the fields listed
(https://i.stack.imgur.com/y4vq2.png) - the error message received
(I am new to all of this, so I am not sure what exactly that means)
I attempted to look in the creature documentation that was linked at the top of the page... modelid did not exist. https://www.azerothcore.org/wiki/creature
This error happens even when I fill out the other values.
I tried to change different values that would allow modelid to work. I changed modelid to the same modelid that is on the creature template, I tried to have it as 0, I tried to leave it blank.
I expected it to be able to execute the query, setting the spawn position etc. for the custom npc that I had created.

Please check your core and Keira and update both to the latest version. They seem to mismatch.

Related

Operation isnt valid due to current state

I know there are many tutorials but I cant connect them with my specific case, so i'd like if anyone could make it clear to me.
https://i.stack.imgur.com/zyNoE.png
https://i.stack.imgur.com/9uFcZ.png
when updating through my grid my date update is working great but somewhy when trying to update name ('שם') the error is thrown. thanks
edit** if u see comments // ull see one line the name is working fine but date isnt. and another one is the exact opposite.
another thing I found out is that if I update both name and date at the same time, I get no error..

How to locate the method using an error message string?

I would like to know where is this error code located in the AOT. Would like to know the path to understand the structure and develop custom code.
Transaction has been selected, for settlement, although settlement type: none was selected
I generally use one of two methods to locate message strings.
Provided the cross reference is updated (it should be in dev) use the "Label editor" to to search for then string, see this answer.
Put a breakpoint in top of info.add method, disable CIL if needed, then rerun to get the error message invoking the debugger, see this answer.

Programmatically add key mappings in Atom

I'm creating several commands programmatically and want to avoid having to add key mappings for them explicitly in keymap.cson.
The Flight Manual page for Keymap Manager shows an add method. It doesn't give an example of how to actually use this method, so my guess is that this should work:
atom.keymaps.add('atom-text-editor',{'alt-1':'custom:my-command'});
However, this does not appear to work. When I run this in the developer console, I get this message:
Encountered an invalid key binding when adding key bindings from 'atom-text-editor' 'custom:my-command'.
I got this message even if I changed alt to ctrl.
What does the correct method call on atom.keymaps look like.
I agree, the docs are not detailed enough. However, through trial and error, I managed to figure it out:
atom.keymaps.add('foo', {
'atom-text-editor' : {
'alt-1': 'custom:my-command',
'#': 'application:about'
// etc
}
});
Explanation:
atom.keymaps.add(source, bindings, priority);
The source argument is not the same as what is referred to as the selector in Atom speak. Instead, it's an identifier that can be used to remove the keybindings, should you wish to (except it seems they haven't actually implemented a remove method!).
Instead, the selector should go inside the bindings argument, as shown above.

Stack Trace Error for RefTableId field assignment

I created a new table and added a new Integer field (called RefTableId) with an EDT of the standard RefTableId type. Writing NewTable.RefTableId = tableNum(SomeTable); compiles but during run time I get this stack trace error: "Error executing code: Wrong argument types in variable assignment."
I've even tried NewTable.RefTableId = 0; This still fails. And yes, I've triple checked that it is indeed an integer field.
The solution is really stupid, the line before the assignments was reading .data() out of a FormListItem object that had invalid data in it. Instead of showing an error for that line, it skips over it and fails the assignment lines below. It makes no sense to me since I wasn't using any information from that FormListItem object to populate any field data with, yet still caused that to fail for some reason. I'm going to mark this one in the "Bang Head Here" category.
If the code is in a class, be sure to do a compile of all super classes as well as a compile forward (child classes). Remember to do an incremental CIL.
If it still fails do a full compile (axbuild).

Broken JavaScript Registry in Plone 3.1.7

I created a javascript file TTW for a quick fix to something i was working with, and when i went to the portal_javascripts and added it there i was met with this error upon saving:
Exception Type: CompilerError
Exception Value: Path element may not be empty in 'portal/http://www.example.com/portal_skins/cloud.js'
I get that same error every time i attempt to navigate to the portal_javascripts through the ZMI, it's obvious that I incorrectly entered the id of my file, but now I can't even fix it.
I was able to find this example of someone with a similiar issue, but I have no how to go about his fix
http://markmail.org/message/zbjhjoezz2h423yr#query:+page:1+mid:yhgjekdkwnegwqen+state:results
Try this:
http://example.com/portal_javascripts/unregisterResource?id=[your_js_resource_id]

Resources