Raised This Month: $12 Target: $400
 3% 

HLDS-V8: Extending HLDS with V8 JavaScript engine


Post New Thread Reply   
 
Thread Tools Display Modes
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 03-11-2014 , 09:46   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #11

dllapi.h is missing..?
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.
jonnzus is offline
deejayy
Junior Member
Join Date: Mar 2005
Old 03-11-2014 , 10:02   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #12

It's referenced from metamod:

metamod-1.20/metamod/dllapi.h
__________________
deejayy is offline
jonnzus
Epic Member
Join Date: Oct 2010
Location: Finland
Old 03-11-2014 , 10:25   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #13

Okay, I managed to compile this, I had to comment out line 295 in hlsdk-2.3-p4/multiplayer/dlls/player.h since compiler gave me this error and I don't know how to fix it.
Code:
In file included from hldsv8.cpp:4:0:
../hlsdk-2.3-p4/multiplayer/dlls/player.h:295:7: error: extra qualification ‘CBasePlayer::’ on member ‘TabulateAmmo’ [-fpermissive]
I'm not sure did that ruin something but at least I got it compiled ^^
And btw, if someone wants to save time you can just install package libv8-dev:i386 in debian and you don't have to compile v8.
__________________
Quote:
367. Everyone's copyright will be broken. No exceptions.

Last edited by jonnzus; 03-11-2014 at 10:26.
jonnzus is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 03-11-2014 , 10:49   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #14

Wow, this looks neat. Good job! Waiting for future updates.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
deejayy
Junior Member
Join Date: Mar 2005
Old 03-11-2014 , 11:23   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #15

Quote:
Originally Posted by jonnzus View Post
Okay, I managed to compile this, I had to comment out line 295 in hlsdk-2.3-p4/multiplayer/dlls/player.h since compiler gave me this error and I don't know how to fix it.
Code:
In file included from hldsv8.cpp:4:0:
../hlsdk-2.3-p4/multiplayer/dlls/player.h:295:7: error: extra qualification ‘CBasePlayer::’ on member ‘TabulateAmmo’ [-fpermissive]
I'm not sure did that ruin something but at least I got it compiled ^^
And btw, if someone wants to save time you can just install package libv8-dev:i386 in debian and you don't have to compile v8.
Ouch, i forgot that i modified this line to:

Code:
void TabulateAmmo( void );
And yes, installing the package could shorten the procedure, i just wanted to make sure i use the newest version of v8, that is why i compiled it myself.
There could be some differences, because v8 is evolving very rapid, i've run into some tutorials from last year which are throwing compile errors because of the api changes.
Anyway, when it is running without errors, should be okay.

Some note on the github repo: i'm trying to commit always a working state, but this is a very early phase of development, so hiccups may occur, sorry for that
__________________

Last edited by deejayy; 03-11-2014 at 15:16.
deejayy is offline
dantemilitello
New Member
Join Date: Oct 2010
Old 03-12-2014 , 14:17   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #16

Oh man !!, This is amazing!
dantemilitello is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 03-14-2014 , 21:15   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #17

What about windows support and pre/post functions?
Mistrick is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 03-15-2014 , 01:56   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #18

Looks great.
Probably I am going to use this.
__________________
Kia is offline
deejayy
Junior Member
Join Date: Mar 2005
Old 03-15-2014 , 04:31   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #19

Quote:
Originally Posted by Mistrick View Post
What about windows support and pre/post functions?
The callbacks currently implemented are all pre (as of documentation), post's are in plan after all neccessary (at least amxx level) functions are implemented.

Windows support would be nice, i'm planning it after first stable.
__________________
deejayy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-15-2014 , 14:24   Re: HLDS-V8: Extending HLDS with V8 JavaScript engine
Reply With Quote #20

I don't really understand the point of this. Pawn is not that hard and AMX Mod X has been proven to work reliably.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode