Level Editing: Scripting

Talk about Severance Blade of Darkness modifications and maps here. No tips or tech support questions please, use the forum above. Note that the game is rated 18 so some content may be unsuitable for younger readers.

Moderators: prospero, Ade

esfumato
Dragon
Posts: 264
Joined: Wed Dec 11, 2002 7:36 pm
Location: Spain
Contact:

Post by esfumato »

This would be a lot of work and a very huge spent of energy, with all the time that you waste to do that proyect you could do a huge number of single player maps arenas or something caracters 3d objects.

Ylor
Hatchling
Posts: 5
Joined: Wed Aug 10, 2005 12:24 am
Location: Sweden

Post by Ylor »

Certainly!

But then my main interest is not to get BOD-maps (though it would be a great bonus!), but to learn more about programming and C++. And it would probably not be too hard to adjust the program so that it could make maps for other games as well, which would make it more worth the effort.

Then again I quess it's far more likely that I manage to finish a BOD map (I started making one a year or so ago that I have not yet finished [:p]) than this mega-project!

esfumato
Dragon
Posts: 264
Joined: Wed Dec 11, 2002 7:36 pm
Location: Spain
Contact:

Post by esfumato »

Well isn't a bad idea.

sgi1981
Dragon
Posts: 61
Joined: Sun Aug 14, 2005 8:51 pm
Location: Ukraine
Contact:

Post by sgi1981 »

What maximum quantity of sectors can be written down in a format "*.mp"
65535
Or
4294967295

?

sgi1981
Dragon
Posts: 61
Joined: Sun Aug 14, 2005 8:51 pm
Location: Ukraine
Contact:

Post by sgi1981 »

I shall spend better time to decipher formats "*.mp" and "*.bw", to make on DELPHI the own editor of maps, in which all will be more evident and to build a map there it will be necessary not by sectors as pieces and points, and more convenient way (on the screen in the three-dimensional image to create material environment(Wednesday) from those elements, which were to be seen, these elements too are created separately, as bricks or panels, and then from åëåìåíòîâ âñ ¸ is under construction).
And about sectors the computer "will think" and to deduce(remove) them.
Such at me think.

Ylor
Hatchling
Posts: 5
Joined: Wed Aug 10, 2005 12:24 am
Location: Sweden

Post by Ylor »

Hey, sgi1981, lucky I wrote about what I was doing, I think you just saved me a whole lot of work!! What you have been doing is exactly what I am (was) doing. Thank you! I haven't had time to read through your post exactly, but I'm sure it'll be of a lot of help! [:D]

If you too are thinking about making your own map-maker we should definitely work together. It's a complete waste of time that both of us makes our own environment handlers, script writers, translaters and so on. Though we are working with different languages I'm sure we should be able to use each others compiled classes. [:)]

Well, I've still not decided if I'm really goning to do this project, but I'll get back.. Maybe we should make a new topic about that so that we keep Prosperos wonderful scripting tutorial clean (though we've allready messed it up [:I]).

sgi1981
Dragon
Posts: 61
Joined: Sun Aug 14, 2005 8:51 pm
Location: Ukraine
Contact:

Post by sgi1981 »

topic :
sgi1981 topic ¹1

[email protected]
Whelp
Posts: 28
Joined: Wed Sep 22, 2004 11:32 am
Location: Russia

Post by [email protected] »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">that so that we keep Prosperos wonderful scripting tutorial clean (though we've allready messed it up )<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

you're right, get out of this topic[}:)][:D]

sgi1981
Dragon
Posts: 61
Joined: Sun Aug 14, 2005 8:51 pm
Location: Ukraine
Contact:

Post by sgi1981 »

Dear Prospero: how with the help scripts to create sectors during game?
For example: as it is done(made) in MariaMod, when the hero comes into the large room - room in the beginning is empty. Then anywhere there are walls and form a labyrinth...

User avatar
prospero
Ancient Dragon
Posts: 1730
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Post by prospero »

See your other topic.[8D]

[email protected]
Whelp
Posts: 28
Joined: Wed Sep 22, 2004 11:32 am
Location: Russia

Post by [email protected] »

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by sgi1981</i>

Dear Prospero: how with the help scripts to create sectors during game?
For example: as it is done(made) in MariaMod, when the hero comes into the large room - room in the beginning is empty. Then anywhere there are walls and form a labyrinth...
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

You can find it in the scripts[;)]

sgi1981
Dragon
Posts: 61
Joined: Sun Aug 14, 2005 8:51 pm
Location: Ukraine
Contact:

Post by sgi1981 »

PROSPERO.

You will give further lessons on scripts on BLADE.
I know, that in standard modules scripts BLADE there are a lot of subroutines!
For example, in the module BLADEX my program has learned(found out) such functions

Bladex. GetSector (
Bladex. GetEntity (
Bladex. ActivateInput (
Bladex. DeactivateInput (
Bladex. AddScheduledFunc (
Bladex. GetTime (
Bladex. GetCharType (
Bladex. CreateEntity (
Bladex. CreateSound (
Bladex. GetTimeActionHeld (
Bladex. GetObjectEntitiesVisibleFrom (
Bladex. GetCurrentMap (
Bladex. SetCallCheck (
Bladex. SaveProfileData (
Bladex. StartProfile (
Bladex. DisableProfiler (
Bladex. EnableProfiler (
Bladex. SetEventTableFuncC (
Bladex. SetEventTableFunc (
Bladex. LoadSampledAnimation (
Bladex. SetAnimationFactor (
Bladex. AssocKey (
Bladex. CheckPyErrors (
Bladex. UnBindAll (
Bladex. AddBoundFunc (
Bladex. Bind2 (
Bladex. AddParticleGType (
Bladex. SetParticleGVal (
Bladex. SetSun (
Bladex. GetEntitiesAt (
Bladex. InsideActionArea (
Bladex. AddAnimFlags (
Bladex. AddAnmRStep (
Bladex. AddAnmLStep (
Bladex. AddAnmRRelease (
Bladex. AddAnmLRelease (
Bladex. AddStopTests (
Bladex. AddAnmEvent (
Bladex. AddBipedAction (
Bladex. SetActionEventTable (
Bladex. CreateTimer (
Bladex. TakeSnapShot (
Bladex. SetActionCameraMovement (
Bladex. AddTranTime (
Bladex. AddWatchAnim (
Bladex. ShareAllAnimations (
Bladex. AddTriggerSector (
Bladex. SetTriggerSectorFunc (
Bladex. SetAutoGenTexture (
Bladex. AddInputAction (
Bladex. SetListenerPosition (
Bladex. GetAppMode (
Bladex. RemoveAfterFrameFunc (
Bladex. SetAfterFrameFunc (
Bladex. ActivateInput, (
Bladex. ReadBitMap (
Bladex. AddCombustionDataFor (
Bladex. AnmTypeRSteps (
Bladex. AnmTypeLSteps (
Bladex. LoadLevel, (
Bladex.nEntities (
Bladex. GetScreenXY (
Bladex. CreateBipedData (
Bladex. LoadAnmRaceData (
Bladex. SaveAnmRaceData (
Bladex. AddFloorCTolerance (
Bladex. SetTime (
Bladex. OpenProfileSection (
Bladex. CloseProfileSection (
Bladex. OpenDebugChannel (
Bladex. BodInspector (
Bladex. GetBloodLevel (
Bladex. LoadLevel (
Bladex. ReadLevel (
Bladex. GetNewExclusionGroupId (
Bladex. GetSound (
Bladex. DeleteStringValue (
Bladex. AddMusicEventMP3 (
Bladex. AddMusicEventADPCM (
Bladex. ExeMusicEvent, (
Bladex. GetMusicEvent (
Bladex. SetDrawObjectShadows (
Bladex. ReadAlphaBitMap (
Bladex. GetPTime (
Bladex. GenerateEntityName (
Bladex. SetMouseState (
Bladex. GetMusicVolume (
Bladex. SetMusicVolume (
Bladex. GetAnimationDuration (
Bladex. GetMutilationLevel (
Bladex. CleanArea (
Bladex. GetTriggerSectorFunc (
Bladex. SetTimeSpeed (
Bladex. GetScreenRect (
Bladex. GetTextWH (
Bladex. WriteText (
Bladex. KillMusic (
Bladex. SetTimeSpeed, (
Bladex. KillMusic, (
Bladex. CreateSpark (
Bladex. ExeMusicEvent (
Bladex. RemoveTriggerSectorFunc (
Bladex. SetTriggerSectorFunc, (
Bladex. RemoveScheduledFunc (
Bladex. GetDrawObjectShadows (
Bladex. AddScheduledFunc, (
Bladex. CDStop (
Bladex. SetAppMode (
Bladex. SetMenuTgapFunc (
Bladex. GetMusicEventPriority (
Bladex. AddMusicEventWAV (
Bladex. GetCommandLine (
Bladex. SetTriggerSectorData (
Bladex. GetTriggerSectorData (
Bladex.nSectors (
Bladex. GetTriggerSectorName (
Bladex. GetTriggerSectorGroup (
Bladex. GetTriggerSectorPoints (
Bladex. GetTriggerSectorFloorHeight (
Bladex. GetTriggerSectorRoofHeight (
Bladex.nTriggerSectors (
Bladex. GetLastPlayerCType (
Bladex. ShutDownSoundChannels (
Bladex. PauseSoundSystem (
Bladex. BeginLoadGame (
Bladex. SetCurrentMap (
Bladex. SetSaveInfo (
Bladex. GetSaveInfo (
Bladex. LoadSoundDataBase (
Bladex. SaveSoundDataBase (
Bladex. SaveParticleSystemsData (
Bladex. LoadParticleSystemsData (
Bladex. LoadWorld (
Bladex. GetWorldFileName (
Bladex. SaveCombustionData (
Bladex. LoadCombustionData (
Bladex. ReassignCombustionData (
Bladex. SaveEntitiesData (
Bladex. LoadEntitiesData (
Bladex. LoadMusicState (
Bladex. SaveMusicState (
Bladex. SetCombos (
Bladex. GetCombos (
Bladex. ResumeSoundSystem (
Bladex. DoneLoadGame (
Bladex. GetnScheduledFuncs (
Bladex. GetScheduledFunc (
Bladex. GetnAfterFrameFuncs (
Bladex. GetAfterFrameFuncName (
Bladex. GetAfterFrameFunc (
Bladex. GetnTimers (
Bladex. GetTimerInfo (
Bladex. SetStringValue (
Bladex. DeleteEntity (
Bladex. GetMouseState (
Bladex. CreateDFCAnimation (
Bladex. CreateFCAnimation (
Bladex. SetBloodLevel, (
Bladex. GetStringValue (
Bladex. CreateMaterial (
Bladex. SetDefaultMaterial (
Bladex. DeleteStingValue (
Bladex. SetRunString (
Bladex. StopTime (
Bladex. CloseLevel (
Bladex. Quit (
Bladex. SetAutoEngageCombat (
Bladex. GetAutoEngageCombat (
Bladex. SetAecGap (
Bladex. SetBloodLevel (
Bladex. SetMutilationLevel (
Bladex. GetAecGap (
Bladex. GetSoundVolume (
Bladex. SetSoundVolume (
Bladex. GetSSQuality (
Bladex. SetSSQuality (
Bladex. GetEAXOverride (
Bladex. SetEAXOverride (
Bladex. GetSpeakerConfig (
Bladex. SetSpeakerConfig (
Bladex. GetWindowId (
Bladex. GetCurrentMap! = "Barb-M1": StatusFile.write (
Bladex. GetCurrentMap! = "Ruins-M4": StatusFile.write (
Bladex. GetCurrentMap! = "Dwarf_M3": StatusFile.write (
Bladex. GetCurrentMap! = "Ragnar-M2": StatusFile.write (
Bladex. GetWeaponCombos (
Bladex. SetInputMode (
Bladex. RemoveInputAction (
Bladex. SaveSSConfig (
Bladex. SetRootWidget (
Bladex. GetMapType (
Bladex. AddStepSound (
Bladex. AddMaterialStepSound (
Bladex. AddActionStepSound (
Bladex. GetnParticleGType (
Bladex. GetParticleGType (
Bladex. GetParticleGVal (
Bladex. AddGhostSector (
Bladex. SetGhostSectorSound (
Bladex. GetGhostSectorSound (
Bladex. SaveScreenShot (
Bladex. RestartTime (
Bladex. DrawBOD (
Bladex. PauseSoundSystemButMusic (
Bladex. GoToTime (
Bladex. GetEnemiesVisibleFrom (
Bladex. Bind (
Bladex. GetTimeSpeed (
Bladex. SetSolidMask (
Bladex. SetGhostSectorGroupSound (
Bladex. Input (
Bladex. CloseDebugChannel (
Bladex. RemoveBoundFunc (
Bladex. AddTextureMaterial (
Bladex. GetTrailType (

I do not know till now purpose(assignment) of all these subroutines.

User avatar
prospero
Ancient Dragon
Posts: 1730
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Post by prospero »

Yes.....I suppose I know what about half of them are for. Some I have
a vague idea and the rest are mostly a mystery.[8)]


The last one 'GetTrailType' is interesting. I once found the file that defines all the trail properties, but I cannot find it again.[:(]
I have looked all though the files.[:0] I am begining to think I imagined it.[:I]

If anyone finds it, plzzzzzzzzzzzzzzzzzzzz let me know.[:p]

big truck
Dragon
Posts: 103
Joined: Mon Dec 27, 2004 2:13 pm
Location: Canada
Contact:

Post by big truck »

[:)]
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">I am begining to think I imagined it.
<hr height="1" noshade id="quote"></font id="quote"></blockquote id="quote">

No, I don't think so...[8D]


[:)]
In Scripts\Bipeds, I have found the following codes...

Code: Select all

def DefaultTrail(Name):
	import Bladex
	trail=Bladex.GetTrailType(Name)
	trail.Time2Live=0.3
	trail.Color=40,40,40
	trail.Transparency=0.7
	trail.ShrinkFactor=1.0
	


def Init():
	import Bladex
	import netgame
	
	if netgame.GetNetState() == 1:
		DefaultTrail("Default")
		DefaultTrail("EstelaGris1")
		DefaultTrail("EstelaRoja1")
		DefaultTrail("EstelaAmarilla1")
		DefaultTrail("EstelaAzul1")
	else:
		trail=Bladex.GetTrailType("Default")
		trail.Time2Live=0.3
		trail.Color=40,40,40
		trail.Transparency=0.7
		trail.ShrinkFactor=1.0
		
		trail=Bladex.GetTrailType("EstelaGris1")
		trail.Time2Live=0.4
		trail.Color=40,40,40
		trail.Transparency=0.6
		trail.ShrinkFactor=1.0
		
		trail=Bladex.GetTrailType("EstelaRoja1")
		trail.Time2Live=0.6
		trail.Color=70,0,0
		trail.Transparency=0.5
		trail.ShrinkFactor=1.0
		
		trail=Bladex.GetTrailType("EstelaAmarilla1")
		trail.Time2Live=0.6
		trail.Color=40,40,0
		trail.Transparency=0.7
		trail.ShrinkFactor=1.0
		
		trail=Bladex.GetTrailType("EstelaAzul1")
		trail.Time2Live=0.6
		trail.Color=0,0,40
		trail.Transparency=0.7
		trail.ShrinkFactor=1.0

print "Done Trails.Init()"
[8)]

User avatar
prospero
Ancient Dragon
Posts: 1730
Joined: Wed Nov 21, 2001 1:42 am
Location: United Kingdom

Post by prospero »

That's the one BT.[:D][:D][:D]

Thanks a mill.

Post Reply