--!NEEDS:"lf/lf_dyn_character_base.lua" --> DOES NOT WORK--!NEEDS:lf/lf_dyn_character_base.lua --> DOES NOT WORK--require "lf/lf_dyn_character_base" --> WORKS
LF_Dynamic_Bat = Core.class(LF_Dynamic_Character_Base)function LF_Dynamic_Bat:init(xworld)
LF_Dynamic_Character_Base.createAnim(self, "idle", 1, 5)end
Is it because of this? LF_Dynamic_Bat = Core.class(LF_Dynamic_Character_Base) I also put !NOEXEC at the top of lf_dyn_character_base.lua --!NOEXEC seems to work fine.
my problem is here: LF_Dynamic_Bat = Core.class(LF_Dynamic_Character_Base)
LF_Dynamic_Bat gets loaded before LF_Dynamic_Character_Base so my code doesn't work.
If I go to code dependencies on LF_Dynamic_Bat.lua and check LF_Dynamic_Character_Base.lua then that works.
I wanted to do it by code rather than gideros studio.
So now I removed --!NOEXEC from LF_Dynamic_Character_Base.lua but that doesn't work, error:
.\lf/lf_dyn_character_base.lua:110: attempt to index field 'anims' (a nil value)
***EDIT***: I FOUND the problem, I was passing the whole path but only the lua file is needed!!! --!NEEDS:lf/lf_dyn_character_base.lua --> DOES NOT WORK --!NEEDS:lf_dyn_character_base.lua --> WORKS
It is the path relative to where you put the --!NEEDS:
Gideros 2020.9.1 is available on github in pre-release. I didn't test it extensively, but changes are minor beside the fact that Xcode 12 was used to build iOS/Mac stuff this time.
Gideros 2020.9.1 is available on github in pre-release. I didn't test it extensively, but changes are minor beside the fact that Xcode 12 was used to build iOS/Mac stuff this time.
Hi! What sort of leak was that? When 1Mb texture took 10Mb RAM? "Fixing a huge memory leak when loading textures"
> Newcomers roadmap: from where to start learning Gideros "What one programmer can do in one month, two programmers can do in two months." - Fred Brooks “The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
index.html:6 The key "target-densitydpi" is not supported. index.html:1 Access to XMLHttpRequest at 'file:///C:/xxx/PROJECTS/_gideros/_BUILDS/html5/mkgiPlatformerX02LFv2/gideros-wasm.wasm.gidz' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, edge, https, chrome-untrusted. gidloader.js:114 Failed to load:gideros-wasm.wasm.gidz (anonymous) @ gidloader.js:114 Promise.then (async) JPZConvert @ gidloader.js:108 JPZLoad @ gidloader.js:120 (anonymous) @ index.html:54 gidloader.js:30 GET file:///C:/xxx/PROJECTS/_gideros/_BUILDS/html5/mkgiPlatformerX02LFv2/gideros-wasm.wasm.gidz net::ERR_FAILED (anonymous) @ gidloader.js:30 JZPLoadAsync @ gidloader.js:4 JPZConvert @ gidloader.js:103 JPZLoad @ gidloader.js:120 (anonymous) @ index.html:54
EDIT: I fixed some image files which had strange color formatting (thank you gimp). I exported to html5 then to itch.io and that worked .
The thing is I was able to test the app on MS edge before uploading to itch.io but it seems MS edge has new security so now so I cannot test my app on my local machine anymore
So that should work on a server.
I may need to install a local server such as wamp in the future to test my apps.
I would like to report a bug for gideros v2020.9 regarding the gideros player. When you are in the player and press CTRL+R (restart) then View "Always on Top" gets deactivated (not working).
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
Comments
https://wiki.giderosmobile.com/index.php/Loading_Order_of_Lua_Files
I also put !NOEXEC at the top of lf_dyn_character_base.lua
--!NOEXEC seems to work fine.
Likes: MoKaLux
LF_Dynamic_Bat = Core.class(LF_Dynamic_Character_Base)
LF_Dynamic_Bat gets loaded before LF_Dynamic_Character_Base so my code doesn't work.
If I go to code dependencies on LF_Dynamic_Bat.lua and check LF_Dynamic_Character_Base.lua then that works.
I wanted to do it by code rather than gideros studio.
So now I removed --!NOEXEC from LF_Dynamic_Character_Base.lua but that doesn't work, error:
.\lf/lf_dyn_character_base.lua:110: attempt to index field 'anims' (a nil value)
***EDIT***: I FOUND the problem, I was passing the whole path but only the lua file is needed!!!
--!NEEDS:lf/lf_dyn_character_base.lua --> DOES NOT WORK
--!NEEDS:lf_dyn_character_base.lua --> WORKS
It is the path relative to where you put the --!NEEDS:
Thank you for your time hgy29, much appreciated
Likes: MoKaLux, plicatibu
Likes: keszegh, MoKaLux, rrraptor
"Fixing a huge memory leak when loading textures"
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
http://forum.giderosmobile.com/discussion/8271/windows-player-crashes-and-freeing-texture-memory
Likes: MoKaLux
Fragmenter - animated loop machine and IKONOMIKON - the memory game
gideros v2020.9
Likes: MoKaLux
index.html:6 The key "target-densitydpi" is not supported.
index.html:1 Access to XMLHttpRequest at 'file:///C:/xxx/PROJECTS/_gideros/_BUILDS/html5/mkgiPlatformerX02LFv2/gideros-wasm.wasm.gidz' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, edge, https, chrome-untrusted.
gidloader.js:114 Failed to load:gideros-wasm.wasm.gidz
(anonymous) @ gidloader.js:114
Promise.then (async)
JPZConvert @ gidloader.js:108
JPZLoad @ gidloader.js:120
(anonymous) @ index.html:54
gidloader.js:30 GET file:///C:/xxx/PROJECTS/_gideros/_BUILDS/html5/mkgiPlatformerX02LFv2/gideros-wasm.wasm.gidz net::ERR_FAILED
(anonymous) @ gidloader.js:30
JZPLoadAsync @ gidloader.js:4
JPZConvert @ gidloader.js:103
JPZLoad @ gidloader.js:120
(anonymous) @ index.html:54
EDIT: I fixed some image files which had strange color formatting (thank you gimp).
I exported to html5 then to itch.io and that worked .
The thing is I was able to test the app on MS edge before uploading to itch.io but it seems MS edge has new security so now so I cannot test my app on my local machine anymore
So that should work on a server.
I may need to install a local server such as wamp in the future to test my apps.
Fausse alerte
Likes: MoKaLux
When you are in the player and press CTRL+R (restart) then View "Always on Top" gets deactivated (not working).
Thank you
Likes: MoKaLux
Likes: MoKaLux
Likes: SinisterSoft
https://deluxepixel.com