This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Version of Stormlib for Noggit Qt  (Read 1706 times)

funnybunny

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 19
    • View Profile
Version of Stormlib for Noggit Qt
« on: November 02, 2014, 07:25:13 pm »
I haven't been able to build the Qt version of Noggit because of API changes in StormLib, meaning I get errors like this:

Code: [Select]
.../noggit3/src/noggit/mpq/archive.cpp:125:9: error:
      no matching function for call to 'SFileReadFile'
        SFileReadFile (file_handle, *buffer, *size);
        ^~~~~~~~~~~~~
/usr/local/include/StormLib.h:899:15: note: candidate function not viable:
      requires 5 arguments, but 3 were provided
bool   WINAPI SFileReadFile(HANDLE hFile, void * lpBuffer, DWORD dwToRea...
              ^

do any developers know where I could get the right version of stormlib? none of the old versions i have  are the right function signatures :(
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Version of Stormlib for Noggit Qt
« Reply #1 on: November 02, 2014, 07:44:19 pm »
Nope, sorry, likely the one current when that thing was developed.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

funnybunny

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 19
    • View Profile
Re: Version of Stormlib for Noggit Qt
« Reply #2 on: November 03, 2014, 01:37:25 am »
its okay, i was able to patch archive.cpp to use the updated with the "out" parameters NULL (https://gist.github.com/jrsa/5db0f7d6f5c02f25255b)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akspa420

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 65
    • View Profile
Re: Version of Stormlib for Noggit Qt
« Reply #3 on: November 10, 2014, 01:01:21 am »
When I was able to compile it without issues, the version I believe was at 8.2x.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »