Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
News / Re: PtokaX 0.5.2.2 released...
« Last post by ATAG on 05 December, 2019, 21:41:50 »
Hey

I've got some error on compile.

Quote
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:507:25: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetBoolCom[szi] != '\0') {
           ~~~~~~~~~~~~~~~ ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:530:26: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetShortCom[szi] != '\0') {
           ~~~~~~~~~~~~~~~~ ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:553:24: error: comparison between pointer and integer ('const char *' and 'int')
        if(SetTxtCom[szi] != '\0') {
           ~~~~~~~~~~~~~~ ^  ~~~~

Quote
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
Target: x86_64-unknown-freebsd12.0
Thread model: posix
InstalledDir: /usr/bin

UP: solution is to change quote to double quote :D
Code: [Select]
if(SetBoolCom[szi] != "\0") {
Quote
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:507:25: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetBoolCom[szi] != "\0") {
                           ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:530:26: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetShortCom[szi] != "\0") {
                            ^  ~~~~
/usr/home/atag/PtokaX-src/core/SettingManager.cpp:553:24: warning: result of comparison against a string literal is unspecified (use strncmp instead) [-Wstring-compare]
        if(SetTxtCom[szi] != "\0") {
2
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by havokdan on 26 September, 2019, 01:20:46 »
Thank you. Since I am running the same code the only culprit I can think of is Lua 5.1 because I develop and test on 5.3. I have made some amendments. I should be most grateful if you could please grab the updated ptokaxnew.lua and give it a go.


This was a very useful report as it highlights the coding standards I need to keep in order to retain Lua 5.1 compatibility. I have tested the linked file in a Lua 5.1 environment and throws no errors.

Its ok now, thanks.  :)
3
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by bastya_elvtars on 25 September, 2019, 19:44:07 »
Thank you. Since I am running the same code the only culprit I can think of is Lua 5.1 because I develop and test on 5.3. I have made some amendments. I should be most grateful if you could please grab the updated ptokaxnew.lua and give it a go.


This was a very useful report as it highlights the coding standards I need to keep in order to retain Lua 5.1 compatibility. I have tested the linked file in a Lua 5.1 environment and throws no errors.

4
Support / Re: Language files...
« Last post by zapman2 on 25 September, 2019, 19:25:03 »
Hi there,

Attached are updated translation files in French and in Turkish, with a few less typos and the new "Your client send incorrect IP or Port in command" sentence translated. Converting charsets shouldn't be necessary this time.

Please note that in the original "Your client send incorrect IP or Port in command" sentence in English, the "send" verb should probably be in the past tense, i.e. "Your client sent".

All the best.
5
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by havokdan on 24 September, 2019, 18:56:58 »

ok
6
Bugs / Re: Charset issue with the Turkish translation
« Last post by alisonberlin on 24 September, 2019, 16:53:51 »
Indeed, it looks perfect :) The problem is on my side then, i'll try to figure it out.

Also, I'd suggest a correction now that I could see the strings on the application: the current translation of "Discard", "At ??pe" should be "Vazge?".

This was not the correction as in that type you are insulting the audience more then suggesting things bro
7
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by bastya_elvtars on 24 September, 2019, 14:55:49 »
It did not work with me, says he has a problem with ";" the line 58.


It is always advisable to paste the exact errror message when reporting.


Nevertheless, line 58 is this:

Code: Lua
  1. TmrMan.AddTimer(1000, function (); HandleEvent ("Timer"); end)


which is correct syntax so I have no idea what may be causing the problem (the exact same code is running just fine on my test setup). This line is however not currently used so it is fine to just comment it out/delete it if it seems to cause problems (which it is not supposed to do).
8
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by havokdan on 24 September, 2019, 10:53:09 »
In order to quickly apply the fix without downloading the entire package overwrite scripts/freshstuff/ptokaxnew.lua with THIS (press CTRL+S when the file opens in your browser). Then simply restart freshstuff.lua.


Thanks for the report, fellas!

It did not work with me, says he has a problem with ";" the line 58.
9
Bugs / Script enable failure
« Last post by bastya_elvtars on 23 September, 2019, 17:11:55 »
When I issue !startscript for a non-running (0) script it won't start. However, if I stop PtokaX then change the corresponding entry in Scripts.pxt to 1 and start PtokaX again it is enabled. The script itself had been enabled before I closed PX so I am not sure if the writeout of Scripts.pxt works correctly.
Linux SZG-YOGA 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 GNU/Linux (Arch Linux).
10
FreshStuff3 / Re: FreshStuff3 5.0.2 released with Lua 5.1 and 5.3 support
« Last post by bastya_elvtars on 22 September, 2019, 22:53:02 »
In order to quickly apply the fix without downloading the entire package overwrite scripts/freshstuff/ptokaxnew.lua with THIS (press CTRL+S when the file opens in your browser). Then simply restart freshstuff.lua.


Thanks for the report, fellas!
Pages: [1] 2 3 4 5 6 ... 10