November 20, 2019, 01:12:57 PM

Author Topic: speech.mod errors when used cannot build programm  (Read 542 times)

Offline Gijsdemik

  • Jr. Member
  • **
  • Posts: 5
speech.mod errors when used cannot build programm
« on: August 25, 2019, 02:49:45 PM »
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

Code: [Select]
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
Code: [Select]
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.



Offline Henri

  • Full Member
  • ***
  • Posts: 213
Re: speech.mod errors when used cannot build programm
« Reply #1 on: August 25, 2019, 03:14:58 PM »
Hi,

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

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

Offline TomToad

  • Sr. Member
  • ****
  • Posts: 451
Re: speech.mod errors when used cannot build programm
« Reply #2 on: August 25, 2019, 03:43:54 PM »
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.

Offline Gijsdemik

  • Jr. Member
  • **
  • Posts: 5
Re: speech.mod errors when used cannot build programm
« Reply #3 on: August 29, 2019, 02:45:03 PM »
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!!