Description: Archive discussion============================Original description:Official subforum for LunaLua - an extension framework for SMBX Engine Version 1.3 (which a core of SMBX 2.0). Share your creations that require the use of LunaLUA. You may also share info/tutorials on how to use LunaLUA.

Sorry also for the lack of without post anything, and also I re-re-work again on re-doing the code of my Inv. Menu and cheats menu stuff. :D

I reduced to 400 lines from about aprox. 1300 lines , but for now I'm stuck about to making a table for the inventory but I can't follow anymore because it wont work like I want. If some one can help me just to find a better way to stock items in my inventory (I mean more in a table) it could be very easier

there is an example about where I am now :P

Also I just show the necessary stuff in the code ( it's possible I missed some lines but you get the point )

I want to have a table look like but I know it can't work like this, but if anyone have an idea :D

both are working I dont know why but about table is there a way to do like table replace instead of remove ?when I remove some elements in my table PowerUpsUnSelSprites or the other one it's say that error :

Feeling the same. Because I have to redesign some core LunaLua parts which eats my time. But you have to keep doing it.

Lotus006 wrote:@Kevsoft, Is there a way to get the mouse position like in the level editor ?

I add that to the wishlist, but don't expect that feature to come too soon.If you have any more suggestions you can add them to the wiki here: http://wohlsoft.ru/pgewiki/LunaLua_Wishlist (you can use your forum login, to login into the wiki)

LunaLua v0.7.3 is finally released. I apologize for the long waiting, but there where a lot of critical changes in this version.Please make sure that your CC12 level is working with this version!

So here is the changelog:

Spoiler

* Custom images can now be drawn behind SMBX sprites. * Hardcoded images can now be patched via hardcoded-*.png * Added new compareLunaVersion for version checking * Added new event onKeyboardPress which handles raw keyboard input * Added new draw function (Graphics.draw [Named args]) * Added new OpenGL drawing system (Graphics.glDraw [Named args]) * Added new lua based pause function: Misc.pause, Misc.unpause, Misc.isPausedByLua * Improvement [LunaLua]: Refactored mainV2.lua for better performance and smaller code * Added new function for better controlling the loop: onTick, onTickEnd, onDraw, onDrawEnd * Improvement [LunaLua]: onHUDDraw and onCameraUpdate now has the camera index as argument. * Improvement [LunaLua]: onMessageBox can now be cancelled * Added FIELD_BOOL which can be used for the mem-functions. * Added NPC.get overload with only the npc-id as argument. * Bugfix [LunaLua]: SMBX doesn't crash anymore, if you pass nil to some LunaLua functions. * Improvement [LunaLua]: The max npc id is now 300 * Added NPC:harm * Bugfix [LunaLua]: Tiles can now correctly be replaced with PNGs. * Bugfix [LunaLua]: PlayerSetting.height was pointing to players width * Extended Camera class * Bugfix [LunaLua]: Cheat defines now don't reset. * Added registerCustomEvent, so you can create custom events from your APIs. * Added event onCameraUpdate and Camera.x, Camera.y is now writeable. * Added a lot of new world map classes. * Added Misc.doPSwitchRaw - You can now trigger the raw P-Switch effect. * Added Misc.doPSwitch - You can now trigger the full P-Switch effect. * Added Misc.doBombExplosion - You can now spawn bomb explosions. * Bugfix [LunaLua]: Misc.resolveFile and Misc.resolveDirectory don't crash anymore and works faster now. * Bugfix [LunaLua]: Some unreliability of Animation.spawn has been fixed. * Bugfix [LunaLua]: Level sounds.ini now works correctly when using from the main game * Bugfix [LunaLua]: Hitboxes and offsets are now reset before loading a new level or world * Bugfix [LunaLua]: Misc.loadEpisode now works also without Autostart ini file. * Added onStart - This event is the better "onLoad". This event will be executed, when SMBX is running the first frame. * Fixed music.ini bug which wasn't supported track number suffix for NSF/HES/etc. multi-track musics * NPCs can now be killed, even if they are hidden. * Add width/height properties to LuaImageResource. * Allow onNPCKill to be cancelled.

Professor Moriarty wrote:am I doing something wrong, or has Autocode been removed?

Just kept for compatibility with exists stuff. This part is no more takes updates. However, a quick guide to migrate from Autocode to Lua but keep same logic. Lua is much more flexible and embeddable language with wide community and usage purposes. Autocode is even not a Turing-complete language which lacks a lot of many common features.