Canardia Posted January 22, 2010 Share Posted January 22, 2010 I need the AppTitle() command in Lua, else I can't make windowed games, since it always says "Engine" in the window title. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
macklebee Posted January 22, 2010 Share Posted January 22, 2010 can't you just rename the engine.exe to whatever you wish so it will have that name on the title? because technically isn't that the EXE that is running? Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Canardia Posted January 22, 2010 Author Share Posted January 22, 2010 Didn't even think of that Well, it works, kinda. I had to rename the exe to "Sokoban 1.0.exe" to get the window title I want. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
macklebee Posted January 22, 2010 Share Posted January 22, 2010 Didn't even think of that Well, it works, kinda. I had to rename the exe to "Sokoban 1.0.exe" to get the window title I want. kinda works? appears to work just fine for me... My game now has the title 'Sokoban 1.0' as well. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Canardia Posted January 22, 2010 Author Share Posted January 22, 2010 Well one thing which doesn't work is the correct naming of the log file (it is created as "Sokoban 1.log"), since Josh looks for the first dot in the filename (filenames can have multiple dots, which is standard in almost all OS except Windows also), so he should always look for the LAST dot (using RInstr() or something) to determine the filename and extension. Multiple dots in filenames are used for nested extensions, like filename.tar.gz, which is a gunzip packed file, which was first tared. Of course tar -xf filename.tar.gz works also, since the inner extensions can be supported by the tools if they supported the outer extensions too (which tar does, since it calls first gunzip if the outer extension is gz). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
macklebee Posted January 22, 2010 Share Posted January 22, 2010 hmmm... i guess i would have just called the exe Sokoban 1_0 if i was going to be that worried about what the log file was named... but perhaps thats something josh can easily fix with the multiple dots... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Niosop Posted January 22, 2010 Share Posted January 22, 2010 Of course tar -xf filename.tar.gz works also, since the inner extensions can be supported by the tools if they supported the outer extensions too (which tar does, since it calls first gunzip if the outer extension is gz). Maybe in some later version of tar, but in my experience you always have to tell it that it's a gzip compressed tar with "tar -xzf filename.tar.gz". Not the "z" tells it to run it through gunzip first, like the "j" tells it to use bunzip2. Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Canardia Posted January 22, 2010 Author Share Posted January 22, 2010 hmmm... i guess i would have just called the exe Sokoban 1_0 if i was going to be that worried about what the log file was named... but perhaps thats something josh can easily fix with the multiple dots... Yeah, it's not even something which I consider a bug, it's just fundamental wrong thinking, since I can't even imagine why people would assume that the FIRST dot seperates the filename from the extension (it takes also more CPU cycles, since the extension is in most cases shorter than the filename, so it's faster to start from the end of the string). Maybe people who never used other OS than DOS would I think the wrong thinking is caused by a BlitzMax function called StripExt() or something, so it might not even be Josh's fault. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.