PCS Game Hosting
 
  Forum Index    Search    Usergroups    Edit your profile    Members    Arcade    Ranks

 Reputation    Medals    Staff    Statistics    Board Rules    Forum FAQ    Private MessagesLogin, Check Messages    Log in 

Search for at
Soldier Of Fortune 2 Advanced Search



Post new topicReply to topicprinter-friendly viewThank Post
   Soldier Of Fortune 2 Forum Index » General Chat » Source Code: Warning Conversion
 View previous topic :: View next topic  
Author Message
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Thu Dec 18, 2014 8:49 pm
PostPost subject: sof2 Source Code: Warning Conversion
Reply with quote

Hello guys,

So i've been thinking about checking the rocmod source code again, mainly because of a school project i need to do, anyhow when everything was installed correctly and extracting the rocmod 2.1c source code i was trying to check if it would compile correctly.

So as ussual the cmd prompt will show up but after 5 sec or so it said the following:

Quote:

../../ui/ui_shared.c:7670: warning conversion from 'pointer to void' to 'pointer to qboolean function<pointer>' is compiler dependent


Anyone an idea what's wrong, it occured while compiling cgame folder on multiple lines:

compiling bat file
Hidden: 

@set include=

del /q vm
mkdir vm
cd vm
set cc=sof2lcc -DQ3_VM -DMISSIONPACK -DCGAME -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I..\..\game -I..\..\ui %1

%cc% ../../game/bg_misc.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_weapons.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_player.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_pmove.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_slidemove.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_lib.c
@if errorlevel 1 goto quit
%cc% ../../game/bg_gametype.c
@if errorlevel 1 goto quit
%cc% ../../game/q_math.c
@if errorlevel 1 goto quit
%cc% ../../game/q_shared.c
@if errorlevel 1 goto quit
%cc% ../cg_consolecmds.c
@if errorlevel 1 goto quit
%cc% ../cg_draw.c
@if errorlevel 1 goto quit
%cc% ../cg_drawtools.c
@if errorlevel 1 goto quit
%cc% ../cg_effects.c
@if errorlevel 1 goto quit
%cc% ../cg_ents.c
@if errorlevel 1 goto quit
%cc% ../cg_event.c
@if errorlevel 1 goto quit
%cc% ../cg_gametype.c
@if errorlevel 1 goto quit
%cc% ../cg_gore.c
@if errorlevel 1 goto quit
%cc% ../cg_info.c
@if errorlevel 1 goto quit
%cc% ../cg_light.c
@if errorlevel 1 goto quit
%cc% ../cg_localents.c
@if errorlevel 1 goto quit
%cc% ../cg_main.c
@if errorlevel 1 goto quit
%cc% ../cg_miscents.c
@if errorlevel 1 goto quit
%cc% ../cg_players.c
@if errorlevel 1 goto quit
%cc% ../cg_playerstate.c
@if errorlevel 1 goto quit
%cc% ../cg_predict.c
@if errorlevel 1 goto quit
%cc% ../cg_scoreboard.c
@if errorlevel 1 goto quit
%cc% ../cg_servercmds.c
@if errorlevel 1 goto quit
%cc% ../cg_snapshot.c
@if errorlevel 1 goto quit
%cc% ../cg_view.c
@if errorlevel 1 goto quit
%cc% ../cg_weaponinit.c
@if errorlevel 1 goto quit
%cc% ../cg_weapons.c
@if errorlevel 1 goto quit
%cc% ../../ui/ui_shared.c
@if errorlevel 1 goto quit
%cc% ../cg_newDraw.c
@if errorlevel 1 goto quit

%cc% ../nvc_utils.c
@if errorlevel 1 goto quit
%cc% ../nvc_draw.c
@if errorlevel 1 goto quit
%cc% ../nvc_msgs.c
@if errorlevel 1 goto quit

%cc% ../nvc_scoreboard.c
@if errorlevel 1 goto quit
%cc% ../nvc_hud.c
@if errorlevel 1 goto quit

%cc% ../nvc_mapChange.c
@if errorlevel 1 goto quit

sof2asm -f ../cgame
@if errorlevel 1 goto quit

copy *.qvm "D:\Games\SOF2
vmod\vm"
copy *.qvm "../../installer/files/vm"

:quit
cd ..
pause



As far as i know ' void ' is a blank result and boolean only has 2 values which are True or False, dunno if qboolean is any difference.
Anyhow appreciate if someone could help it.


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>


Last edited by Punisher on Fri Dec 19, 2014 2:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sponsor
jantsux
Pro Poster
Pro Poster


Gender: Gender:Male
Joined: Jan 31, 2013
Last Visit: Jul 03, 2017
Age: 25
Posts: 34

blank.png 
Reputation: 425.9
votes: 2
Medals: None

Status: Offline
PostPosted: Thu Dec 18, 2014 10:04 pm
PostPost subject: No icon Re: Source Code: Warning Conversion
Reply with quote

Send that exact line (7670)
Back to top
View user's profile Send private message
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Distinguished Uploader (Amount: 1)

Status: Offline
PostPosted: Fri Dec 19, 2014 2:47 pm
PostPost subject: No icon Re: Source Code: Warning Conversion
Reply with quote

on line 7670
{{ NULL, }, NULL }

on line 6942 ( Same )

{{ NULL, NULL }, NULL }

on line 3212
captureFunc = NULL;

on line 30
static void (*captureFunc) (void *p) = NULL;


Just noticed  while compiling on line 5082 @ undeclared identifier
if(item->window.ownerDrawFlags & CG_TEAMCOLOR ){

on line 646 ( same undeclared identifier )

if(w->ownerDrawFlags & CG_TEAMCOLOR ){

Previous times when i compiled it it worked just normal, now it gives some errors.


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Fri Jan 09, 2015 9:02 pm
PostPost subject: No icon Re: Source Code: Warning Conversion
Reply with quote

anyone got a clue?


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Sponsor
Smiley face
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Sat Jan 10, 2015 7:26 pm
PostPost subject: No icon Re: Source Code: Warning Conversion
Reply with quote

maybe good to know, its when compiling cgame, games compiles it normally, cgame gives the errors.


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Punisher
Administrator
Administrator


In Game: The Punisher
Gender: Gender:Male
Joined: May 04, 2012
Last Visit: Dec 03, 2017
Age: 20
Posts: 718

Netherlands.png 
Reputation: 3259
votes: 3
Medals: 2 (View more...)
Dedication (Amount: 1)

Status: Offline
PostPosted: Sun Jan 11, 2015 2:49 pm
PostPost subject: No icon Re: Source Code: Warning Conversion
Reply with quote

nvm fixed it, dunno what made it work, but i kept reinstalling and trying and somehow its working properly now.


Website: House of Pain Server - Website
Serverlist: House of Pain Server - Serverlist

<a><img></a>

<a><img></a>
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic printer-friendly viewThank Post
Soldier Of Fortune 2 Forum Index »  General Chat
 
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Hi guys 12 Rockertjen 5036 Wed Dec 18, 2013 9:47 am
Punisher View latest post
No new posts Hey guys if anyone remembers playing with me hit me up 1 playdoh 2077 Thu Dec 05, 2013 9:07 am
Teo View latest post
No new posts Sup guys!!! 5 VenOm 4042 Thu Sep 12, 2013 12:01 pm
Hoffers View latest post
No new posts have a good week end guys....dont drink and drive.. 1 LilJoe 2028 Thu Aug 29, 2013 10:58 pm
Teo View latest post
No new posts hello guys! 1 crusher 2007 Sun May 26, 2013 8:25 pm
Teo View latest post
 




Back to Top

SOF2.ORG Multiplayer Community © 2017 All times are UTC + 2 Hours [DST enabled]
 

Copyright ©