> 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:

> 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.
>
>
>
> I found a .loh file in the source folder that says:
>
>
>
> /* code automatically generated by bin2c -- DO NOT EDIT */
>
> {
>
> /* #include'ing this file in a C program is equivalent to calling
>
>   lua_dofile(L,"../obj/iuplua5/console.lo");
>
> */
>
> /* ../obj/iuplua5/console.lo */
>
>
>
> 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?
>
>
>
> Speaking of the Tools package, I’m glad to see that IupView is still
> available. The link in the “Simple Paint” tutorial was broken and I didn’t
> know where to find it other than buried in the “Lua for Windows” files.
>
> 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.
>
>
>
> Thanks,
>
> Kaz
>
>
>
>
>
> *From: *Antonio Scuri <antonio.sc...@gmail.com>
> *Sent: *Wednesday, December 1, 2021 7:38 AM
> *To: *IUP discussion list. <iup-users@lists.sourceforge.net>
> *Subject: *Re: [Iup-users] Is There an Updated Stand-Alone Interpreter?
>
>
>
>   The latest version is included in the latest "Tools" package in the
> Downloads.
>
>
>
>   Latest source code is on SVN.
>
>
>
> Best,
>
> Scuri
>
>
>
>
>
> Em seg., 29 de nov. de 2021 às 21:06, Kaz F <kaz.fox...@gmail.com>
> escreveu:
>
>
>
> I’ve been working on updating an app that used the “iuplua5.exe”
> stand-alone interpreter so if the app crashes, an error message pops up.
>
> Since I can’t figure out how to get debugging to work for it (it’s several
> Lua scripts and 1 C script), I’d like to find out if there’s a way to at
> least get error messages to work.
>
>
>
> Is there an updated version of that .exe anywhere? Is it even needed? I
> noticed that on this page (
> https://www.tecgraf.puc-rio.br/iup/en/iuplua_adv.html)  it says:
>
>
>
> "In C to improve the error report, use the following functions to execute
> Lua code: ... These functions mimics the implementation in the standalone
> interpreter for Lua 5, that displays the error message followed by the
> stack."
>
> Does that mean if you put those lines somewhere, an error pop up will
> appear if the app crashes?
>
>
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to