Page 2 of 5

Posted: Thu Jun 12, 2008 6:37 pm
by Yvan98
Thanks again![:)]

...but the resume was not working before i remove the:

Code: Select all

So now i've got:

Code: Select all

def ResumeMusic3():
	global Currentmusic	
	if Currentmusic!="Tarantia":
Did i'm right to think that you cannot ask to resume a music if you kill it before?

Posted: Thu Jun 12, 2008 6:53 pm
by prospero
The KillMusic() func just stops whatever music is playing. You can start it up again any time you like. The Currentmusic variable just saves the name of whatever music was playing before you killed it.

The music handling in the main game is quite involved and I have never totally figured it out.[8)] Sometimes there is 'outside' and 'inside' music. Check out Tel Halaf. When you go inside the music changes and if you come outside again it changes back. This is done with trigger sectors, but you must make sure all the exits and entrances are covered.

There is a built-in method in BOD where you can assign 'combat' music to an individual enemy or whole race of enemies. When the enemy goes into combat mode, his music will start and when he dies or if you run away out of sight it cuts out. But afterwards you have to walk into a trgger sector to start the music again.

Posted: Thu Jun 12, 2008 7:26 pm
by Yvan98
Sorry[B)] it's my mistake!

I try to resume a music on a 'EnterSecEvent' to see if the resume work but with the 'Kill' function, the music was stop. The code was working but is useless since the music is already playing.

To be able to resume a 'combat' music, you need the 'Kill' function.[:I]

Posted: Fri Jun 13, 2008 10:03 pm
by Yvan98
Is it possible that you can't resume a .mp3 file??

I know that Blade create an error when you put a .mp3 file in a 'combat' music:

Code: Select all

Adding MP3 for dinamic music for Rgn2
AddCombatMusic->ERROR, trying to pre open a MP3 file
In fact this error is not so important since it's work in combat but in a resume func...

Posted: Sun Jun 15, 2008 11:26 am
by brian
Just been playing your mod Yvan98. Excellent stuff[8D]. I'm a Knight player usually, so I enjoyed the barbarian for a change. Some cool combos, really easy to execute and the game difficulty seems just right (for me anyway).

Anyone still looking for something new to play, I recommend this. Sure, its the same map, but the path and enemies are different, so it really felt new.
Thanks for this.[:)]

Posted: Tue Jun 17, 2008 3:04 pm
by Yvan98
I appreciate your comments brian[8D]

Soon i will put the 1.2 version with music and i have been able to add another combo...Roundhouse Kick!!

2 others questions...[:I]

I've got some problem when loading a savegame, the name of all weapon are lost with the properties, like the 'venom'. I also lost all the 'ComboFX'.

For the first problem, i put a copy of all reference into '' but it's not work.

Posted: Tue Jun 17, 2008 3:34 pm
by prospero

Yes this can happen. I got around it by using a file: (check out DwarfWars)

In this file there is a function: InitNewStuff()

You can list all your new object names and altered stats in this function.

Then in

import obj_def

Also put his code in for the savegame.[:)]

*remember to add this file to [;)]

Posted: Tue Jun 17, 2008 4:08 pm
by Yvan98
Not working[B)]

The file is present and execute from and I keep all reference into, so that mean i've got 3 times those reference including but...

Posted: Tue Jun 17, 2008 6:28 pm
by Yvan98
I have been able to fix the ComboFX...[:p]

In, i put at the end:

Code: Select all

def ResetComboFX():
	global Live
	if Live==1:	
		import Barbarian_AComboFX
		print "TRYING TO INITIALISE CONAN_FX for savegame"

Bladex.AddScheduledFunc(Bladex.GetTime()+0.0,  ResetComboFX,())

Posted: Tue Jun 17, 2008 6:44 pm
by Yvan98

Using the same code, i have been able to make the 'Reference' work:

In, i put at the end:

Code: Select all

def ResetReference():
	global Live
	if Live==1:	
		import obj_def

Bladex.AddScheduledFunc(Bladex.GetTime()+0.0,  ResetReference,())

Using this code, you can remove

Code: Select all

import obj_def
from and

Posted: Tue Jun 17, 2008 11:10 pm
by Yvan98
Version 1.2 release

What's new:

- Intro
- Music (Conan theme)
- Add a left kick (attack left without weapon)
- Add a 'Roundhouse Kick' (check in 'combo screen' "abilities")
- More combos screens (2 specials)
- Fix ComboFX and Reference after loading a Savegame
- ...and try my best to fix some little 'bug'.

I hope you will enjoy it![:)]

btw. This mod is the best example of a guy who start from zero...thanks to anyone who help me to learn coding this great game and a special thanks to PROSPERO!!

Posted: Sat Jun 21, 2008 4:28 pm
by Daxon
Excelent job! is great how you made new weapons for barb, really original and wonderful effects! i have enjoyed with your work, you could modify the original map from kashgar? I though that it wasn´t possible! your map show that we could modify each campaing map and make and actualized blade with weapons shops, or im wrong [:I]?

Hey! include me on the credits [|)]!

Posted: Sat Jun 21, 2008 6:06 pm
by prospero
Hey Yvan.[:D] I just finished the new version. Very nice.[8D] The music is very effective.

I got the hang of the new combos now. New Barb can really do some serious damage.[:p]

btw. I was telling you lies about obj_def file.[:I] It's mainly for new objects. If you redefine existing ones in this file they may or may not get overwritten by later imports of

btw2. Daxon. Never tried ProsperoArena5? You can run about on the steppes of Kara Kum.[;)]

Posted: Sun Jun 22, 2008 12:55 am
by Yvan98
I'm really sorry Daxon[:I]

I forgot that i take some of your work for the weapon texture...



To be able to modify an original map or any map that can only need the .mp file. For the original map, you can check in the 'map' directory, some of then still there.

I also take the ROUNDHOUSE KICK from the 'MartialTP' and i want to thanks tptpt...


I'm working with a second map [:p]
I want Conan to be able to beat the Darklord![:D]

I want to introduced the map Chaos after this one...but i need to know if a code exist to import the inventory and level (in the file

I have been able to make work the second level but...

btw. I forgot to tell that i have increase the inventory from 4 to 5.

Posted: Sun Jun 22, 2008 2:45 am
by prospero
Yvan. You mean continue on to a new map with Player Level and Inventory intact? It can be done. I put this facility in the Wizard map, but I had to modify the code quite radically to account for all the extra magic stuff.

You should be able to use this function:

Code: Select all

import os

def EndOfPart1():
        # check whether next map is installed...
	if not os.path.exists ("../../Maps/NameOfNextMap/"):
		print "Loading Casa map"
	import GotoMapVars
I think it <i>should</i> work OK. You must make sure any new objects that the Player may transfer from the old map are preloaded into the new map.

And you must not have the code in to clear all the Player info...

Bladex.DeleteStringValue("MainChar")...and so forth.[;)]