The Dink Network

Reply to Re: Bugfixes for freedink on Linux

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 5th 2022, 02:36 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
"Also, with a fixed version of FreeDink, I don't think there will be a way for me to differntiate between vanilla 1.08 and FreeDink 109.6"

Scrap that. I just scripted a way, and tested it, confirmed working. It's now differentiating between vanilla 1.08, freedink 108.4, freedink 109.6 on windows(whether sound is enabled or not), freedink 109.6 on linux, DinkHD old versions, and DinkHD new version.
I used an internal timer discrepency, detecting a 31 millisecond difference in the time it takes an invisible sprite to move from one side of the screen to the other when sp_speed is set to 100.
In order of priority (so it detects without crashing)
1. Check get_version. "If > 110" it's dinkhd, "if < 111" its old dinkhd, else its new dinkhd.

2. "if == 108", check value on a null key, "if nullkey < 0" its old Freedink version(108.4 or lower). Else, it's 1.08 or FreeDink 109.6.

3. Get the player to press F2 (F2 is key-113.c on vaniall 1.08, and key-59.c on FreeDink 109.6).

4. Use discrpency with &args to detect linux freedink 109.6 (&arg4-&arg8 DO NOT clear, they act as globals.. &arg1-&arg3 work properly, however).
external("null", "null", 0, 0, 0, 99);, then another external to check if &arg4 cleared or not.
"if &arg4 > 0" its linux freedink 109.6. Else it's Windows FreeDink 109.6.

FIN. I will update vcheck one last time, soonish, with this stuff. That means a when a new version comes out, I can do a step 5 with the soundbank test, to also check between 109.6, and new fixed version as well.

Back on topic now. I too apologise for these off topics.

EDIT: I changed step 3 to keystroke of pressing 'F2'. It's more reliable.