Let me just preface this by saying this isn't just some noobish "pls help me" thread.
I just decompiled and compiled cas_logos.qb only to have it fail without any modifications. I tried looking into the problem, but it's kind of difficult to track down exactly just by searching. The issue in question is when compiling something like this:
Code: Select all
:i :s{
:i $desc_id$ = $My Cool Texture$ // <--- here is the problem
:i $frontend_desc$ = %sc(15,"My Cool Texture")
:i $common_hatlogo_params$
:i $with$ = %s(30,"textures/logos/My_Cool_Texture")
:i $sponsor$ = $neversoft$ // idk what relevance this has honestly
:i :s}
The compiler will throw an error expecting the $ to end the desc_id, and instead is met with a space and it might throw errors on other characters, haven't really looked that far into it. So, the obvious solution would to remove all of the spaces and other characters right? Of course, that works, but the problem is that this is a pain in the ass given how many things need to be replaced. I'd rather just not fuck with it and have it be formatted properly the first time. I'm pretty sure it's just copying the frontend_desc and making it as the identifier as well, and so this is a problem as you can imagine.
So, this is my first time really doing any of this, so I don't know if I'm just an idiot and there's some newer compiler that has fixed this (given there are many sites with many links to outdated programs all over the web). I found the source for qb_new qb_old and qb_fast, I'm not sure how recent the revision is compared to something like QB2.1 for example, I haven't compiled against it yet to see if it generates the CRC-32 hashes for you in the table or not (as I had this problem with one compiler). Anyways, there's a text file that describes the opcodes and what's implemented and all, and so right now I'm just figuring out exactly where the desc_id is being created, I found the hash for it in the file and so right now I'm just reading it with my eyes trying to see what's going on here.
My question is, is there something out there already that has resolved this, or is this just one file that people haven't bothered to replace, and it's one of the only files that has this issue, therefore no one has really encountered it? I'm going to install Visual Studio and get this compiled and test it out and try to compile something and see if I can fix the problem myself either way.
Thanks.