FB HGEWrapper 2D Game Engine

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Ryan
Posts: 693
Joined: Jun 10, 2005 2:13
Location: Louisville, KY
Contact:

Postby Ryan » Nov 20, 2007 1:54

Hey Dalex, just wanted to say thanks for introducing me to HGE! I was able to create a wonderful game that looks nicer than my normal creations and has some cool particle effects. I couldn't have done it without your work porting HGE to FB.

Check it out here: SECTOR SHOCK

(If you have trouble opening 320x240 full screen, edit settings.ini.)
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Nov 20, 2007 2:53

Dalex, sorry I forgot to check this thread sooner.

That's great news on the license; I wonder why this software is not more popular? :-)

And yes, I did know why my program crashed. ;-)
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Nov 20, 2007 15:48

Ryan Super....good luck
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Nov 25, 2007 16:10

Small news (source code)
Site of the project...
http://dalex.ucoz.ru/
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Dec 01, 2007 9:29

New architecture of the project(without dll)...
HGEWrapper Static Lib for FreeBasic (tutorials,source code,wxDevC++ project)

http://dalex.ucoz.ru/load/4-1-0-6

Please test...
Thank you ... Good luck ...
badmrbox
Posts: 659
Joined: Oct 27, 2005 14:40
Location: Sweden
Contact:

Postby badmrbox » Dec 02, 2007 19:26

I just downloaded and tested the tutorial exe's. This looks sweet.
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Postby loriendesign » Dec 06, 2007 14:41

Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Is it possible the bass.dll not be linked with exe ? I wish to use other audio not bass.dll.

Sorry for my bad English :-(

По руский: Можно ли создать и другая версия в которой юзать только HGE и ехе файл не бил привязан к bass.dll т.е. ехе работало без наличии bass.dll, а если возможно подключи для звука вполне свободний для коммерсиалного изпользования библиотеку - либо звук в фрий бейсик, либо OpenAL, Audiere либо Squall ?
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Dec 06, 2007 18:48

loriendesign wrote:Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Is it possible the bass.dll not be linked with exe ? I wish to use other audio not bass.dll.


Ok... I think ...
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Postby loriendesign » Dec 07, 2007 6:17

Thank you very much. I will look eagerly forward to the future release.
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Dec 08, 2007 17:36

loriendesign
Exellent work :-) But exe file is linked with bass.dll even if code is set "hge_System_SetStateInt(HGE_USESOUND,0)"

Code: Select all

hge_System_SetStateBool(HGE_USESOUND,0)

Good luck...
duke4e
Posts: 717
Joined: Dec 04, 2005 0:16
Location: Varazdin, Croatia, Europe
Contact:

Postby duke4e » Dec 09, 2007 3:44

this didn't work in the past. don't know about the latest update...
loriendesign
Posts: 7
Joined: May 05, 2006 7:04
Contact:

Postby loriendesign » Dec 10, 2007 6:31

this didn't work in the past. don't know about the latest update...


hge_System_SetStateBool(HGE_USESOUND,0)

Thank you very much. With last update it's work for me. Dalex thank you for fast respond.
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Dec 18, 2007 13:27

Corrected bugs...
HGEWrapper Static Lib for FreeBasic http://dalex.ucoz.ru/load/4-1-0-6

Please test...
Thank you ... Good luck ...
speedlemon
Posts: 55
Joined: Sep 21, 2005 22:19

Postby speedlemon » Dec 30, 2007 20:48

Has anyone had luck with the resource manager?

I tried this:

Code: Select all

dim shared as long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont("font1")

with my resource file looking like this:

Code: Select all

Font font1
{
   filename=font1.fnt
}


Everything compiles OK and all the files are there, but I get "Program has encountered error and needs to close."

If no one has used it successfully, I suspect that there is an error with the wrapper. In all the functions (hge_resmgr_getWhatever), there is no argument to specify what manager I want to use (so then what would the purpose of being able to create multiple managers be?). That is just a guess.

Thanks
Dalex
Posts: 46
Joined: Dec 09, 2006 9:46
Contact:

Postby Dalex » Dec 31, 2007 9:54

ups...


New code HGEWrapper.bi-hge_ResourceManager

Code: Select all

'{ hge_ResourceManager }
Declare Function hge_ResMgr                   Cdecl Alias  "hge_ResMgr" (ByVal As ZString ptr)As long
Declare Sub      hge_ResMgr_ChangeScript      Cdecl Alias  "hge_ResMgr_ChangeScript" (ByVal As Long,ByVal As ZString ptr)
Declare Function hge_ResMgr_Precache          Cdecl Alias  "hge_ResMgr_Precache" (ByVal As Long,ByVal As integer)As integer
Declare Sub      hge_ResMgr_Purge             Cdecl Alias  "hge_ResMgr_Purge" (ByVal As Long,ByVal As integer)
Declare Function hge_ResMgr_GetResource       Cdecl Alias  "hge_ResMgr_GetResource" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetTexture        Cdecl Alias  "hge_ResMgr_GetTexture" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetEffect         Cdecl Alias  "hge_ResMgr_GetEffect" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetMusic          Cdecl Alias  "hge_ResMgr_GetMusic" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetStream         Cdecl Alias  "hge_ResMgr_GetStream" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetTarget         Cdecl Alias  "hge_ResMgr_GetTarget" (ByVal As Long,ByVal As ZString ptr)As Dword
Declare Function hge_ResMgr_GetSprite         Cdecl Alias  "hge_ResMgr_GetSprite" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetAnimation      Cdecl Alias  "hge_ResMgr_GetAnimation" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetFont           Cdecl Alias  "hge_ResMgr_GetFont" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetParticleSystem Cdecl Alias  "hge_ResMgr_GetParticleSystem" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetDistortionMesh Cdecl Alias  "hge_ResMgr_GetDistortionMesh" (ByVal As Long,ByVal As ZString ptr)As long
Declare Function hge_ResMgr_GetStringTable    Cdecl Alias  "hge_ResMgr_GetStringTable" (ByVal As Long,ByVal As ZString ptr)As long
'}


New code for speedlemon ...

Code: Select all

Dim Shared As Long myres,fnt
[...]
myres=hge_resmgr("resource.res")
fnt=hge_resmgr_getfont(myres,"font1")


speedlemon
thank you...

Return to “Libraries”

Who is online

Users browsing this forum: St_W and 2 guests