Pages: [1] 2
|
|
|
Author
|
Topic: Hires Netmelee Improvement Mod: Help needed (Read 5078 times)
|
oldlaptop
*Smell* controller
Offline
Posts: 337
|
I've been working on porting the Netmelee Improvement Mod to the HD Mod codebase. Unfortunately, I've run into a snag - the Windows executables I've built with my cross compiler have exhibited strange bugs, and I don't have access to any other compilers for further testing (or any knowledge of Windows development for debugging). If someone out there could build this code for Windows, preferably with MSVC, and post it for testing, I'd be greatly appreciative. (The code is incidentally known to build and run on Linux just fine, I have no idea if/how well it works on OSX.)
https://github.com/oldlaptop/Hires-Shiver-Balance-Mod
|
|
|
Logged
|
|
|
|
Defender
Enlightened
Offline
Gender:
Posts: 817
|
very interested in this.
this is what i get...
src/uqm/restart.c:83: error: `resFactorWasChanged' undeclared (first use in this function) src/uqm/restart.c:83: error: (Each undeclared identifier is reported only once src/uqm/restart.c:83: error: for each function it appears in.) src/uqm/restart.c: In function `DoRestart': src/uqm/restart.c:192: error: `resFactorWasChanged' undeclared (first use in this function) make: *** [obj/release/src/uqm/restart.c.o] Error 1
|
|
« Last Edit: January 31, 2013, 01:51:42 am by Defender »
|
Logged
|
|
|
|
|
oldlaptop
*Smell* controller
Offline
Posts: 337
|
Yes, I found that out the hard(er) way
|
|
|
Logged
|
|
|
|
Defender
Enlightened
Offline
Gender:
Posts: 817
|
i have that same problem we talked about. the melee graphics are messed up.
|
|
|
Logged
|
|
|
|
daddyo
Zebranky food
Offline
Posts: 22
|
Sorry been really busy this week, I'll give it a try compiling Monday. Darn zlib...
An encouraging statement at the top of zlib.h: /* various hacks, don't look */
|
|
« Last Edit: February 04, 2013, 10:10:58 pm by daddyo »
|
Logged
|
|
|
|
daddyo
Zebranky food
Offline
Posts: 22
|
I have a Project 6014 Visual C 2010 uqmdebug.exe! Miracles can happen, although the source I started with was missing functions, so I worked around them for the moment. I compiled it with static libraries since I'm not sure why dll's would be used when I believe they are never shared on the installs, and probably wouldn't want to anyway. Given that the .exe is 3 megabytes in size, can't possibly be an issue with disk space!
Now I'm trying your guys codeline...
|
|
« Last Edit: February 04, 2013, 10:48:33 pm by daddyo »
|
Logged
|
|
|
|
daddyo
Zebranky food
Offline
Posts: 22
|
A few compile errors so far:
error C2275: 'FRAME' : illegal use of this type as an expression C:\...\sc2\sc balance mod\src\uqm\tactrans.c line 388 col 1 error description:
'identifier' : illegal use of this type as an expression
An expression uses the -> operator with a typedef identifier.
The following sample generates C2275:
View ColorizedCopy to ClipboardPrint// C2275.cpp typedef struct S { int mem; } *S_t; void func1( int *parm ); void func2() { func1( &S_t->mem ); // C2275, S_t is a typedef } error C2275: 'PRIMITIVE' : illegal use of this type as an expression C:\...\sc2\sc balance mod\src\uqm\tactrans.c line 725 col 1
error desc: (same as above)
IntelliSense: a value of type "void *" cannot be assigned to an entity of type "STARSHIP *" c:\...\sc2\sc balance mod\src\uqm\tactrans.c line 307, 357, 711, 741 col 2, 4, 2, 4
error desc: none available
Hope this helps. If you have suggestions for changes I'll try them.
|
|
|
Logged
|
|
|
|
oldlaptop
*Smell* controller
Offline
Posts: 337
|
MSVC may be irritated that the variable declarations it's complaining about (in the C2275 errors) don't occur right at the top of their respective blocks, you could try putting them there. If that fixes the errors for you I'll change them in git.
Intellisense would seem to be complaining about a macro used throughout UQM source, I'd be willing to bet it says that about most files in vanilla UQM too.
|
|
|
Logged
|
|
|
|
Elestan
*Smell* controller
Offline
Posts: 431
|
IntelliSense: a value of type "void *" cannot be assigned to an entity of type "STARSHIP *" c:\...\sc2\sc balance mod\src\uqm\tactrans.c line 307, 357, 711, 741 col 2, 4, 2, 4 MSVC may be irritated that the variable declarations it's complaining about (in the C2275 errors) don't occur right at the top of their respective blocks, you could try putting them there. If that fixes the errors for you I'll change them in git. Intellisense would seem to be complaining about a macro used throughout UQM source, I'd be willing to bet it says that about most files in vanilla UQM too. Yes. Intellisense is attempting to enforce the stricter C++ type conversion rules, which don't allow implicit conversion from a void pointer to a typed pointer. However, you're allowed to get away with it in C.
|
|
|
Logged
|
|
|
|
onpon4
Enlightened
Offline
Gender:
Posts: 709
Sharing is good.
|
C++ and C aren't the same language. UQM's code is in C, not C++, so you ought to be using a C compiler.
|
|
|
Logged
|
|
|
|
|
daddyo
Zebranky food
Offline
Posts: 22
|
I got rid of all the compile errors, but did it the hard way by moving some variable declarations to the tops of functions and explicit casting, the latter is a good idea anyway. I never understood why VC makes you put variables at the tops sometimes, I think it's been that way for a long time though, I just forgot about it. I did try to turn off C++ checks for at least the troublesome file but didn't seem to make a difference, but did find the turn off intellisense errors so it compiles w/o explicit casting.
Now I'm getting these 5 link errors, seem to be missing some functions: unresolved external symbol _init_talkpet_comm referenced in function _init_race C:\...\sc balance mod\build\msvc6\commglue.obj UrQuanMasters
unresolved external symbol _generateZoqFotPikColony1Functions C:\...\sc balance mod\build\msvc6\gendef.obj UrQuanMasters
unresolved external symbol _generateZoqFotPikColony0Functions C:\...\sc2\sc balance mod\build\msvc6\gendef.obj UrQuanMasters
unresolved external symbol _generateZoqFotPikScoutFunctions C:\...\sc balance mod\build\msvc6\gendef.obj UrQuanMasters
unresolved external symbol _generateTalkingPetFunctions C:\...\sc balance mod\build\msvc6\gendef.obj UrQuanMasters
I think I've an incomplete build from your download link,
|
|
« Last Edit: February 05, 2013, 11:08:23 pm by daddyo »
|
Logged
|
|
|
|
|
|
Pages: [1] 2
|
|
|
|
|