Error: function not found - rfactor2 script error

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
regin
Posts: 5
Joined: Mon Apr 20, 2015 8:46 pm

Error: function not found - rfactor2 script error

Post by regin »

Hi,

Sorry if this is the wrong place to do this. I'm trying to learn about rFactor2 tracks and am trying to use the quickbms 0.61 tool with the rfactor2 script from the same site to extract files from a GMT MAS file.

When I run the quickbms tool with the script I get this error in the command script type box

Error: function not found

Last script line before the error:
28 calldll MEMORY_FILE4 rfactor2_00475BD0_dll stdcall ... then some digits.

I've tried across multiple OSs and different files but keep coming across this error. Is there anything anyone can do to help me?!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error: function not found - rfactor2 script error

Post by aluigi »

Interesting, it's a bug in the latest version of quickbms where, in fact, I made a little change to that part of the code.
Nice finding.

Going to fix it in quickbms 0.6.3.
regin
Posts: 5
Joined: Mon Apr 20, 2015 8:46 pm

Re: Error: function not found - rfactor2 script error

Post by regin »

Thanks and thanks! I'll watch for it.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error: function not found - rfactor2 script error

Post by aluigi »

To anyone interested in the technical reason of the issue:
QuickBMS uses a function for splitting a string into a list of arguments and in the previous versions it enclosed these arguments between quotes, for example "ARG1", "ARG2", "ARGn".
In the latest version I removed the quotes when not necessary (for example if there are no spaces in the argument) but the problem is that this function is used also by the bms script parsing when you use encryption and comtype calldll in your scripts, so the important #INPUT# argument was handled as a comment (remember that # is a comment) and the parsing was terminated.
That's the reason :)

I think I will release the new version before the end of the week.
regin
Posts: 5
Joined: Mon Apr 20, 2015 8:46 pm

Re: Error: function not found - rfactor2 script error

Post by regin »

I don't know if it's worth mentioning but I downloaded the oldest version I could find in the old versions part of the website - 0.5.1 - and still got the same errors. Hope this is helpful.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error: function not found - rfactor2 script error

Post by aluigi »

That's not possible.
When I tested the old quickbms I used just one of the 0.6* versions available on the website.
So it looks like you are still using 0.6.2.
regin
Posts: 5
Joined: Mon Apr 20, 2015 8:46 pm

Re: Error: function not found - rfactor2 script error

Post by regin »

Oh yeah you're right. Sorry - I'm annoyed with myself now because I thought to try an earlier version then somehow managed to mix them up.

0.5.1 comes up with an error too - something like unknown encryption / hashing type (calldll) - is that going to be the sane in the newest version or should I just shut up, be patient and try it when it arrives?!

It happened on all MAS files for an rFactor2 track, whether they were actually encrypted or not.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Error: function not found - rfactor2 script error

Post by aluigi »

Why do you want to use a version of 4 years ago?!
Use 0.6.1d which is the latest stable one and it works perfectly.
You don't have to wait for a new version.
regin
Posts: 5
Joined: Mon Apr 20, 2015 8:46 pm

Re: Error: function not found - rfactor2 script error

Post by regin »

OK thanks it appears you're a genius. I do have common sense, it just appears that I need a nudge from you in order to use it.

Got 0.6. Extracted fine. Thank you - great work.