I put the .dll files in my source folder with iuplua51.exe and can now open the console. I moved “console.loh” out of the folder and commented out-- static void iuplua_input (lua_State *L) { #include "console.loh" } --in the C file, then recompiled the .exe. I put an error into a Lua script and when I used the original app version, it triggered the error message like it should, but when I put the same error into the updated version, the app just closes. I tried replacing the include in the C file with "lua_dofile(L,"../obj/iuplua51/console.lo");" and also tried "luaL_dofile(L,"../obj/iuplua51/console.lo");" but it didn't work. Was that the wrong code, or is there something else I need to change? From: Antonio Scuri > I downloaded the packages for IUP 3.30 and Lua 5.1, but when I copy iuplua51.exe to my app’s source folder, I get an error when I try to open the console there. Is it because it’s not in the same folder as the .dll files? Originally, the app came with iuplua5.exe and there were no .dll files with it, but if I double click on it, that .exe opens up just fine. Yes, the console uses DLLs a few years now... Just copy the DLLs along with the exe > Do I need to get bin2c and make a new .loh (I don’t know anything about those) or can I just remove the old console.loh and put “lua_dofile(L,"../obj/iuplua5/console.lo");” in the C file? > I don’t have a file called “console.lo” so I don’t know where I’d set the directory path. There’s a bunch of code in the C file related to debug and error messages. Would I have to change anything there so it knows to use iuplua51.exe instead?
No. These files were used during the build. They are embedded in the executable. > I do have an idea for a feature for that— It would be useful if there was an option to output the code with indices instead of RGBA values so the colors can be set dynamically. For example, I made some icons that show what a user’s color choices look like together, which is updated when a color picker is used. As a workaround, I chose unique RGBA values for each of my original image’s 3 colors, which made it easy to do a search-and-replace on the IupView-generated Lua code in order to change RGBA into indices. The generated code will have indices if your input image is a 256 color image. When importing 32 bpp images the generated images will follow their bpp. You updated from a very old IUP version. I guess you will find several differences like these. Best, Scuri
Em qua., 1 de dez. de 2021 às 14:57, Kaz F <kaz.fox...@gmail.com> escreveu:
_______________________________________________ |
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users