Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
21 user(s) are online (5 user(s) are browsing Forum)

Members: 0
Guests: 21

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +5€

Current balance: -45€
(last updated 09/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 35 users playing Freelancer on 38 servers.
October. 20, 2019

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Building FL Hook with VS 2005
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1281
Offline
I get a ton of conversion errors

HkInit.cpp line 312 - undeclared identifier
* this can be fixed by taking the 'uint i' out of the line at 262 and putting it at the top of the routine

.iConnects must have class/struct/union
* that is caused by the above problem

BinaryRDLReader::extract_text_from_buffer' : cannot convert parameter 1 from 'wchar_t [1024]' to 'unsigned short *

cannot convert from 'const unsigned short *' to 'std::basic_string<_Elem,_Traits,_Ax>'
and a ton more like that


Posted on: 2008/6/15 18:00
Galaxy Empire
Youtube Videos
Facebook
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Starport Admin
Senior Members
Posts: 1076
Offline
I had that too, cos the flhook code is not according the current "standard" code rules or something.
Allready asked w0dk4 if it was something he could change, the only option is to use vs 2003 standard or proffesional.

Posted on: 2008/6/15 18:04
Open in new window
Top
Re: Building FL Hook with VS 2005
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1281
Offline
It's only about 40 of them so I might just write a routine to do the same thing and repair them...

Posted on: 2008/6/15 18:19
Galaxy Empire
Youtube Videos
Facebook
Top
Re: Building FL Hook with VS 2005
Not too shy to talk
Joined:
2008/5/26 19:58
Group:
Registered Users
Posts: 56
Offline

Posted on: 2008/6/16 19:36
Top
Re: Building FL Hook with VS 2005
Just can't stay away
Joined:
2008/6/16 20:41
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 312
Offline
He nice to see that others run into the same problems^^
Well the wchar problem is due to the fact that flhook uses multibyte characters/unicode - even casting doesnt work. I nearly had completed this but than you run into other problems ;(

What needs to be proved if it can be deactivated by compiler or linker settings, for example /wd<number of error>
i didnt tried it yet. At least there must be a way to change this besides all other warnings and errors

And the code seems to be written in old-style c - and even this is not longer tollerated by the VS2005 compiler - what at least is good because the source so gets more stable and the optimizing routines of VS2005 could work proper in the case the code would be native code. I know from other projects that the code from VS2005 runs faster and more stable than e.g. with the VS6 engine compiler and linker - so a trial worth to get it translated in VS2005

Posted on: 2008/6/17 0:51
Open in new window
Top
Re: Building FL Hook with VS 2005
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1281
Offline
Well, I know how to do conversions between unicode and multi-character formats, I agree that it would help if it would work on later compilers.
W0dk4, sorry to say but you aren't going to be always using that compiler, could you post your thoughts on this since you will upgrade one day?

I have a few extra features I would like to add in but I would prefer to give them to you to implement them in your full versions....hehe, I can't do that if it won't compile or if I have to add custom code.

Posted on: 2008/6/17 1:36
Galaxy Empire
Youtube Videos
Facebook
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Starport Admin
Senior Members
Posts: 1076
Offline
Lancer see this topic: http://the-starport.net/index.php?opt ... smf&Itemid=26&topic=398.0
Your own code can be put in as a plugin, right?

I do vote for transforming the old code to vs2005 standards. That way even lesser Gods can look at the code (and even build it)without buying a old compiler.

Posted on: 2008/6/17 9:08
Open in new window
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1774
Offline
I will write the plugin version with VC7. Since the plugin version isnt meant to be modified anyways, there is no need to convert it to VS2005 or later.

You can write your own plugins in which dev environment you like, so VC is not even needed on plugins.

Posted on: 2008/6/17 13:25
Top
Re: Building FL Hook with VS 2005
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1281
Offline
Good to know, hope you release a compiled version when you get it working.

Posted on: 2008/6/17 17:09
Galaxy Empire
Youtube Videos
Facebook
Top
Re: Building FL Hook with VS 2005
Not too shy to talk
Joined:
2008/5/26 19:58
Group:
Registered Users
Posts: 56
Offline
Will the plugin-version still be open source?

Posted on: 2008/6/18 1:28
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Starport Admin
Senior Members
Posts: 1076
Offline
What i understood from w0dk4 the FLhook version it self won't be opensource, but the plugins he develops and gives away to the general public will.

Posted on: 2008/6/18 10:49
Open in new window
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/2/26 20:36
From Germany
Group:
Webmasters
Registered Users
Posts: 1774
Offline
I have thought about it a little bit and I think it will be open source, yes.

The only things that will not be open source may be certain plugins, that relate to anticheating or other important functionality that shouldnt be open source.

Posted on: 2008/6/18 11:57
Top
Re: Building FL Hook with VS 2005
Not too shy to talk
Joined:
2008/5/26 19:58
Group:
Registered Users
Posts: 56
Offline
OK, thanks for that.

Posted on: 2008/6/18 17:57
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Starport Admin
Senior Members
Posts: 1076
Offline
Quote:

I have thought about it a little bit and I think it will be open source, yes.

The only things that will not be open source may be certain plugins, that relate to anticheating or other important functionality that shouldnt be open source.


Lol, why did you just say the direct oposite of my answer!!!!

Other than that. Good point about the cheat addons and such.

Posted on: 2008/6/18 22:36
Open in new window
Top
Re: Building FL Hook with VS 2005
Starport Admin
Joined:
2008/5/12 20:47
From The Netherlands
Group:
Registered Users
Starport Admin
Senior Members
Posts: 1076
Offline
been Toying around a bit with vs2008. Than i found out i had a lot to learn still.
I hope the plugin version will come soon, as i will be anctious to have a shot in coding plugins.

Posted on: 2008/6/21 21:24
Open in new window
Top