speech.mod errors when used cannot build programm

Started by Gijsdemik, August 25, 2019, 14:49:45

Previous topic - Next topic

Gijsdemik

hi all,

Ime back at programming my battle wizards game and slowy progressing.
I wanted to add speech.mod from burcey.
When i open the test bmx file it works fine, altou she speaks once but thats a problem for a diffrant time

My problem is when i add the test code to my programm and try to run it
it cannot build my programm i get wierd messages like

"Identifier TImage not found"
i used this
Global CollsionTile:TImage=LoadImage(GameFolder$+"\DataFiles\Coll.PNG",MASKEDIMAGE)

My programme runs fine whit no errors at all until i try to add the speech demo code
i have set Import brl.StandardIO and Framework BaH.Speech

here is my code not working

Strict
Import maxgui.drivers

Import brl.StandardIO
Framework BaH.Speech

Import "AllSharedData_2017.bmx"
Import "WizBoot2017-J1.bmx"
Import "PlayerObjects_2017.bmx"
Import "RunExternal.bmx"
Import "Speak.bmx"

D3D7Max2DDriver:TD3D7Max2DDriver()
SetGraphicsDriver GLMax2DDriver()


when i remove the speech stuff and do this
Strict
Import maxgui.drivers

Import "AllSharedData_2017.bmx"
Import "WizBoot2017-J1.bmx"
Import "PlayerObjects_2017.bmx"
Import "RunExternal.bmx"
Import "Speak.bmx"

D3D7Max2DDriver:TD3D7Max2DDriver()
SetGraphicsDriver GLMax2DDriver()


Then everything is fine,
I hope you can hellp me out because i would realy like to add the speech stuff to my game.



Henri

Hi,

if you use Framework command then try adding 'Import brl.max2d'

-Henri
- Got 01100011 problems, but the bit ain't 00000001

TomToad

Framework removes all modules except for the one named.  It should be listed first in the list, followed by any other modules you wish to include as Import (including any default modules as they will be removed as well).  I would suggest using Import Bah.Speech instead of Framework while developing.  Then, when you are done, use FrameWork Assistant to create the framework and imports you need to reduce the .exe size.
https://sites.google.com/site/jimbrown007/
------------------------------------------------
8 rabbits equals 1 rabbyte.

Gijsdemik

Woa

Thanks guys!

It works fine now,
Good to know to that whit using framework i loos all others

I am going to use your tip TomToad for the framework packing
Ime a long way from actually finishing the game and making an exe but when i do
i shall try the framework assistant
Tnx!!