| View previous topic :: View next topic |
| Author |
Message |
Vlad-00003 Cheater
Reputation: 0
Joined: 21 Jul 2015 Posts: 36
|
|
| Back to top |
|
 |
Vlad-00003 Cheater
Reputation: 0
Joined: 21 Jul 2015 Posts: 36
|
Posted: Thu Feb 25, 2016 7:30 am Post subject: |
|
|
| Anyone?(
|
|
| Back to top |
|
 |
panraven Grandmaster Cheater
Reputation: 62
Joined: 01 Oct 2008 Posts: 959
|
Posted: Thu Feb 25, 2016 9:44 am Post subject: |
|
|
The GetMonoStruct AA command has two form,
when the class can be refer without namespace,
| Code: | | GetMonoStruct(InventoryItem) |
then the AA symbol for the generated structure is the same as class name, ie. InventoryItem.
If the class must be refer with namespace,then the 2nd form must be use:
| Code: | | GetMonoStruct(item,TheForest.Items.Inventory:InventoryItem) |
the AA symbol is 'item', could be any valid identifier, the namespace should be '.' seperated, as usual, but the separator between namespace and class has to be ':'.
Note that some field having special character may not be referred, eg. some property with unspecified getter/setter will be a 'backing field', its field name is like "<NPCManager>k__BackingField" (instead of 'NPCManager'), this cannot be refer in AA on my knowledge.
_________________
- Retarded. |
|
| Back to top |
|
 |
Vlad-00003 Cheater
Reputation: 0
Joined: 21 Jul 2015 Posts: 36
|
Posted: Thu Feb 25, 2016 4:54 pm Post subject: |
|
|
Thanks, panraven!
It did the trick, but right now - any time I'm activating this script annoying lua window pop-up saying "Format 2". Is there any way to avoid it?
I've found a way to do what I want without getting this structure, but hey - you should use any chance to learn new stuff, right?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Thu Feb 25, 2016 5:04 pm Post subject: |
|
|
add this to your autoassembler script:
| Code: |
{$lua}
local i
for i=0, getFormCount()-1 do
local f=getForm(i)
if f.ClassName=="TfrmLuaEngine" then
f.cbShowOnPrint.Checked=false
end
end
processMessages()
{$asm}
|
alternatively, copy the whole function monoAA_GETMONOSTRUCT(parameters, syntaxcheckonly) from monoscript.lua and comment out that print("Format 2") line
or use Items.Inventory:InventoryItem or Inventory:InventoryItem
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Vlad-00003 Cheater
Reputation: 0
Joined: 21 Jul 2015 Posts: 36
|
Posted: Fri Feb 26, 2016 5:59 am Post subject: |
|
|
| Dark Byte wrote: | add this to your autoassembler script:
| Code: |
{$lua}
local i
for i=0, getFormCount()-1 do
local f=getForm(i)
if f.ClassName=="TfrmLuaEngine" then
f.cbShowOnPrint.Checked=false
end
end
processMessages()
{$asm}
|
alternatively, copy the whole function monoAA_GETMONOSTRUCT(parameters, syntaxcheckonly) from monoscript.lua and comment out that print("Format 2") line
or use Items.Inventory:InventoryItem or Inventory:InventoryItem |
Thanks Dark Byte!
Would try next time I'll update my table =3
*but I'm pretty sure that this'll do the trick anyway*
|
|
| Back to top |
|
 |
|