Home / Forums / Modders Corner / Mafia Editing / Mod Help / Titanic mod – a few technical scripts

Titanic mod – a few technical scripts

Home / Forums / Modders Corner / Mafia Editing / Mod Help / Titanic mod – a few technical scripts

12 replies
13 years, 6 months ago
#6718

I need some help with making scripts for Mafia.

After quite some time I decided to try it a bit myself to save some work for Asa as he will have his hands full on the storyline.

 

It is about 2 things.

 

I noticed a script that someone on moddb told me of in The Alive mod.

On City night you could use the elevator in salieri’s bar. After some requests by people I would like to use this script in the Titanic mod. But I haven’t found out how.

 

I tried to explode the script and find out what each function does but no big succes yet. not even with the script reference.

 

and one other thing is a script to let an NPC walk a certain path.

I found these commands:

 

ENEMY_MOVE XX[,RUN]

Makes an enemy move to a special map navigation point

xx == ID of Nav point

run == the actor runs

walk == the actor walks???

 

 

ENEMY_CAR_ESCAPE TT,UU,VV,WW, XX,YY,ZZ

makes car tt drive fast to frame vv

tt == ID of escaping car

uu == ID of actor tt is escaping from

vv == destination frame tt is driving too

ww== ??? where to jump to when car reaches destination.

xx == minimum speed tt will drive at

yy == maximum speed tt will drive at

zz == speed multiplier

 

 

ENEMY_CAR_MOVETO XX,YY,ZZ

xx == ID of Actor Car to move

yy == Id of Frame to move to

zz == Extra options below

natvrdo =confuse.gif??

stopvzad=confuse.gif??Not used

vzad == drives backwards (works only in a straight line)

stop=confuse.gif??

 

 

ENEMY_CAR_HUNT XX,YY

makes car xx chase after actor yy

xx== ID of chasing car

yy == ID of actor being chased

 

 

ENEMY_MOVE_TO_CAR XX,YY[,ZZ]

makes an actor whose script this is move to a car

xx == car to move to

yy == seat position to move to listed below

0 == driverâââ‰â¢s door

1 == front passenger

2 == rear left

3 == rear right

run == Optional,if not added the default is walk.

 

 

ENEMY_MOVE_TO_FRAME XX,YY[,RUN]

makes the enemy whose script this is move to frame xx

until he reaches a distance from the frame xx of yy

xx == ID of frame to send the actor too

yy == Distance the enemy is to get to the frame before the script will return

run == Optional,if not added the default is walk.

 

will any of these work to let an NPC walk around?

 

I know the car commands work in the Alive mod, but that’s when they are in a vehicle on a programmed road by the game’s developers.

The TM has no set pathways like road.bin.

 

 

Any help is ofcourse like always kindly appreciated!

13 years, 6 months ago
#14430

Please not all at once.

13 years, 6 months ago
#14435

Well thats very easy to say but harder to get it work in new maps.You need a check.bin containing paths for civilians.With out it nothing can move from a command.

But back to your question.If you have a check.bin designed for your ship you can easily tell npcs to move there by creating a frame.

So every command apart from “enemy_move xx” should work easily by creating a frame,positioning it on the ship and marking that frame in the script.But again only with proper check.bin.

There is a tool for check.bin but its very complicated to work with.

13 years, 6 months ago
#14454

Thanks for the explanation!

Do you know what tool it is? I could always give it a shot.

13 years, 6 months ago
#14464

Thank you very much!

Though the tool doesn’t look too complicated I can understand that one is making a tutorial for it.

I’ll play around with it some time.

 

The screenshot to the road.bin editor looks very impressive! It can sure be a revolutionary tool for mafia modding. I’m glad these kind of tools are still being developed.

13 years, 6 months ago
#14561

Regarding the guy who’s working on the road.bin editor.

I noticed this screenshot on some website linking to (I guess) his page:

[img]//djbozkosz.wz.cz/screen.jpg&key=1098f3f78ef9341b110dd22a37155c2dd9fba98975e263c3ec16896a8aa295df[/img]

 

Besides the awesome effect of a set path for vehicles and pedestrians, I also noticed an interesting lightmapping effect. Causing shadows and color reflections. I wonder if that’s just a baked texture onto the model or an actual game lightmap!

 

Back to the road.Bin editor, I did found a bit smaller tool to create these, and it seems to work. Not sure how to handle it though.

 

http://www.filedropper.com/46rbc

 

I really hope that other road.Bin editor get’s released soon!

13 years, 6 months ago
#14562

Awesome! thanks for sharing this Mr Robville

13 years, 6 months ago
#14563

God, I even found more interesting tools on MafiaPub. Example, facial animations tool, animation converter, lightmap creator, effects editor…

It seems that all of the missing tools I needed for the Titanic mod are now found! But they are in Russian… All of them.

 

I’ll start a seperate topic about it, hopefully it will get some attention to have someone translate it.

 

For those interested:

http://www.mafiapub.com/programs.php

[img]//www.mafiapub.com/img/programms/med.jpg&key=03c14c303c4036462f8f977eb9d74f888035ccfbca92064caf4d26446e9aa798[/img]

 

Funny, the example screenshot kind of describes a similar face I took when I found these tools.

13 years, 6 months ago
#14564

God, I even found more interesting tools on MafiaPub. Example, facial animations tool, animation converter, lightmap creator, effects editor…

It seems that all of the missing tools I needed for the Titanic mod are now found! But they are in Russian… All of them.

 

I’ll start a seperate topic about it, hopefully it will get some attention to have someone translate it.

 

For those interested:

http://www.mafiapub.com/programs.php

[img]//www.mafiapub.com/img/programms/med.jpg&key=03c14c303c4036462f8f977eb9d74f888035ccfbca92064caf4d26446e9aa798[/img]

 

Funny, the example screenshot kind of describes a similar face I took when I found these tools.

 

Wow! very nice findings!

 

Maybe you could use google translate?

13 years, 6 months ago
#14565
God, I even found more interesting tools on MafiaPub. Example, facial animations tool, animation converter, lightmap creator, effects editor…

It seems that all of the missing tools I needed for the Titanic mod are now found! But they are in Russian… All of them.

 

I’ll start a seperate topic about it, hopefully it will get some attention to have someone translate it.

 

For those interested:

http://www.mafiapub.com/programs.php

[img]//www.mafiapub.com/img/programms/med.jpg&key=03c14c303c4036462f8f977eb9d74f888035ccfbca92064caf4d26446e9aa798[/img]

 

Funny, the example screenshot kind of describes a similar face I took when I found these tools.

13 years, 6 months ago
#14566

LOL, text box bug again,

Very nice findings!

Maybe someone could use translate? it would take some time though as youd have to do each bit 1 by 1

13 years, 6 months ago
#14568

The problem with all of these tools is that there are non existing characters for my computer.

Many russian symbols are not inside my database, and thereby all of these symbols get replaced by questionmarks.

 

I started a topic about it here:

http]

  • You must be logged in to reply to this topic.