SphereCommunity
Errors on script after exe update - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Errors on script after exe update (/Thread-Errors-on-script-after-exe-update)



Errors on script after exe update - Artyk - 08-15-2018 11:55 PM

Hi,
I updated exe to [build 670 / Git hash 6a976c5d] from [build 471 / GIT hash 61d4ac85] and many of my scripts are giving errors, when they were working correctly before.
Trying to understand why, i found this:
serv.log test1. <STR>
serv.log test2. <TAG0.MODMAXHITS>
serv.log test3. <tag0.hits_bonus_perc>
serv.log test4. <INT>
serv.log test5. <TAG0.MODMAXMANA>
serv.log test6. <tag0.mana_bonus_perc>
serv.log test7. <DEX>
serv.log test8. <TAG0.MODMAXSTAM>
serv.log test9. <tag0.stam_bonus_perc>

build 471:
15:11:(Race-Class System.scp,29)test1. 63
15:11:(Race-Class System.scp,30)test2. 04c
15:11:(Race-Class System.scp,31)test3. 0
15:11:(Race-Class System.scp,32)test4. 10
15:11:(Race-Class System.scp,33)test5. 0
15:11:(Race-Class System.scp,34)test6. 0
15:11:(Race-Class System.scp,35)test7. 38
15:11:(Race-Class System.scp,36)test8. 0
15:11:(Race-Class System.scp,37)test9. 0

build 670:
12:56:(Race-Class System.scp,29)test1. 63ú
12:56:(Race-Class System.scp,30)test2. 04cú
12:56:(Race-Class System.scp,31)test3. 0ú
12:56:(Race-Class System.scp,32)test4. 10ú
12:56:(Race-Class System.scp,33)test5. 0ú
12:56:(Race-Class System.scp,34)test6. 0ú
12:56:(Race-Class System.scp,35)test7. 38ú
12:56:(Race-Class System.scp,36)test8. 0ú
12:56:(Race-Class System.scp,37)test9. 0ú

( is DC3 for notepadd++)

Does anyone know why this happens?


RE: Errors on script after exe update - Coruja - 08-17-2018 02:04 PM

what's your OS language? I'm testing here and it seems to be working fine

Code:
[FUNCTION test]
TAG.ModMaxHits=123
TAG.Hits_Bonus_Perc=321
SERV.LOG test1. <STR>
SERV.LOG test2. <TAG0.ModMaxHits>
SERV.LOG test3. <TAG0.Hits_Bonus_Perc>
=
Quote:00:55:(testing.scp,32)test1. 100
00:55:(testing.scp,33)test2. 07b // ----> 07b (hex) = 123 (dec)
00:55:(testing.scp,34)test3. 0141 // ----> 0141 (hex) = 321 (dec)



RE: Errors on script after exe update - Artyk - 08-17-2018 08:46 PM

I'm on Windows 10 Pro v.1803
Language Italian


RE: Errors on script after exe update - Coruja - 08-20-2018 08:37 AM

nah, I'm also testing on win10 (english and portuguese) and can't reproduce it here

but anyway, here on this link you can find all 56d builds to download, maybe if you find exactly the build number where this problem started I can review the changes made on this build to check if there's something wrong

PS: to download builds on this link you just need to select the build number, select windows build (visual studio), go to "artifacts" tab, and the .exe file will be there


RE: Errors on script after exe update - Artyk - 08-20-2018 10:11 PM

Last working 0.56.4.556
From build 0.56.4.557 on (i also tried some random build from that and the last) i have that problem.

Thank you


RE: Errors on script after exe update - Coruja - 08-25-2018 05:53 AM

I compiled the current build 681 with some functions reverted from build 556, try using these builds to check if it's working fine
https://mega.nz/#!VxAH3YSC!pzgCK0gd7vfQvUoPaPgZSIQfVb_-ygxEJlcWeXD-Ewo


RE: Errors on script after exe update - Artyk - 08-25-2018 07:02 PM

There were 4 files in the zip, I used "SphereSvr_reverted_CFileObj.exe"
Still got the problem


RE: Errors on script after exe update - Coruja - 08-26-2018 03:05 AM

these files are different, you should try these 4 files to check which one is working


RE: Errors on script after exe update - Artyk - 08-26-2018 04:33 AM

Tried all of them, none worked Sad


RE: Errors on script after exe update - Coruja - 08-27-2018 10:16 AM

sounds weird, from build 556 (which you said it's working fine) to 557 (with problem) there's 4 types of functions that got changed. I reverted each one of these 4 changes on the test builds above and it still returning error, so maybe the problem is on your .scp files instead SphereSvr.exe

try open these files using an text editor like notepad++ to check if the file is using proper encryption