Announcement

If you are having trouble logging in, please reset your password.
If you are not getting an activation email, please check your spam or
use the "Contact Us" to contact an admin.
July 30, 2012, 05:05:09 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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:


 







QuoteENEMY_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 =??




stopvzad=??Not used




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




stop=??


 


 




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!

#1 August 02, 2012, 10:17:15 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Please not all at once.

#2 August 02, 2012, 10:50:20 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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.

#3 August 02, 2012, 03:08:39 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Thanks for the explanation!




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

#4 August 02, 2012, 05:06:36 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
CheckRE




http://www.mafiascene.net/downloads/vie ... -check-bin


 




Its very difficult to work with.Ive heard that some guy is working on a tutorial for that.




The guy who is also working on road.bin editor http://djbozkosz.wz.cz/screen01.jpg




Maybe that would come handy for you once its out.In road.bin there is path for cars defined

#5 August 02, 2012, 05:42:25 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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.

#6 August 04, 2012, 07:48:15 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Regarding the guy who's working on the road.bin editor.




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







 




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!

#7 August 04, 2012, 07:51:20 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Awesome! thanks for sharing this Mr Robville

#8 August 04, 2012, 08:11:34 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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







 




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

#9 August 04, 2012, 08:16:58 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
QuoteGod, 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







 




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?

#10 August 04, 2012, 08:17:24 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Quote<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="477" data-ipsquote-contentclass="forums_Topic"><div>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







 




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


</div></blockquote>

#11 August 04, 2012, 08:18:29 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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

#12 August 04, 2012, 08:47:24 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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]