![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
I have made separated thread ...
![]() *** Ïîñëå ìîèõ òåñòîâ ñäåëàííûõ ãîä íàçàä (in 2008 use HexEditor) è ïîëíîãî íåóìåíèÿ èçúÿñíÿòüñÿ ïî àíãëèéñêè ÿ âñ¸ òàêè ðåøèëñÿ è S3D by skwasjer ïîìîæåò ìíå: I offer to your attention the method of management of any animations of 3D objects using a system of behavior control of the crew of the human submarine. Also, I'm offering the sample of the code for implementation of my method for creating mods... and I'm publishing some additional crew commands that are not in Command_ *.cfg, but these crew commands are very usefull for use in my method. It is especially easy to make for the looped (and not looped) animations using Crew Commands... For example, DF antenna - raising/lowering and rotation, Flag on Turm - appearance/play/disappearance, fan rotation - play/stop, CR-RR hatch open/close, animation of the diesel engine - play/stop and so on for human submarine... ... Attention, this material is for skilled modders... ************************************************** ****************** First, additional crew commands: Maneuver_officer_end Navigation_officer_end Weapons_officer_end Watch_officer_end Radio_operator_end Sonar_operator_end Example in Command_*.cfg: [Cmd450] Name=Radio_operator Ctxt=1 Key0=0x56,Cs,"Shift+V" GoBack=Radar_view ... [Cmd470] ; additional crew command Name=Radio_operator_end Ctxt=1 Key0=0x56,Cc,"Ctrl+V" ************************************************** ****** Now I'll show you a picture with the sequence of the actions and the code for the mod DF antenna raising / lowering... in more detail with the code, you can acquaint in the DFant_subFlag mod or in other recent mods. Also edit Command_*.cfg file: [Cmd450] Name=Radio_operator Ctxt=1 Key0=0x56,Cs,"Shift+V" GoBack=Radar_view ... [Cmd470] ; additional crew command Name=Radio_operator_end Ctxt=1 Key0=0x56,Cc,"Ctrl+V" ************************************************** ******************** DFa_UpDnRotSMC_1.1, DFa_UpDnRot_Flags, FM30_UpDownSMC mods are outdated and I have no them, so I recommend to study detailed code in the recent mods - FM30_UpDown_final, DFant_subFlag_2010, GWX_DFa-Flag & Pens_2010, LSH3-5_DFa-Flag & Penns_2010... ***************************************** P.S. Attention. If you use this method for animations managment in your published mods, I remind don't forget to give corresponding credits to author Anvart with the correct formulation of the method.
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-30-18 at 08:10 AM. |
![]() |
![]() |
![]() |
#2 |
Eternal Patrol
![]() Join Date: Jun 2006
Location: Karlsruhe
Posts: 679
Downloads: 56
Uploads: 0
|
![]()
Hi Anvart,
sounds very good ![]() Greetings rowi58 |
![]() |
![]() |
![]() |
#3 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
Схема работает без проблем с crew командами ...
Напрягать мозги нужно только при создании логики событий/действий в новом StateMachineClass ... ![]() ... Я не стал описывать азы (основы) State Machine System в игре ... Это слишком долго, а с моим английским еще и трудно (думаю, что никто ничего не поймет) ... но для продвинутых моддеров моей информации достаточно, чтобы делать моды на основе StateMachineCtl ... ************************************************** ***** This scheme works without problems with crew commands ... To strain one's brains (to think) necessary only at creation of events/actions logic in new StateMachineClass ... ![]() ... I did not describe bases of State Machine System in game ... It's too long, and with my English also it's difficult (i think, that anybody will understand nothing) ... ![]() But for advanced modders my information is enough to do mods using StateMachineCtl ... P.S. For management of effects it's necessary to use StateMachineWrapper, but ... it's already other theme ... P.P.S. I have forgotten to tell ... i think, that using this scheme it's possible to create additional crew with existing attributes (Models, Textures, StateMachineClass'es, Animations and so on...) ... But the new object will not be controlled by hardcode as existing crew sockets (DMY_Soclu_...) ... in other words ... don't work disappearance of crew model at submarine submerging, change of crew models at storm weather and so on...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 06-23-10 at 02:14 AM. |
![]() |
![]() |
![]() |
#4 |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]() ![]() I will try to add a few tips/tutorial in a few weeks time regarding the StateMachineClass & Wrapper controller itself (the properties). I think that if we just add tips and hints as we go, it will be easy for everyone to do in 6 months time ![]()
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
![]() |
![]() |
![]() |
#5 | |
The Old Man
![]() Join Date: Apr 2007
Location: Netherlands
Posts: 1,549
Downloads: 26
Uploads: 3
|
![]()
lol, I seem to have offended you again, and have to take a beating... (Also nice how you editted that out already...)
![]() I was speaking of how to script behaviors with StateMachineClass controller. I do not see you explaining that here, do I? Quote:
Regards, skwas
__________________
![]() SH5 mods: Speech Recognition for SH5 | Digital UI Clock Tutorials: [TEC] Import/export 3D models to/from game using S3D [TEC] How to work with the model viewer in S3D - VIDEO |
|
![]() |
![]() |
![]() |
#6 | |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]() Quote:
![]()
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 04-30-18 at 08:05 AM. |
|
![]() |
![]() |
![]() |
#7 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
Да-а-а ...
![]() Очевидно мало кто понимает в этом деле ... и поговорить не с кем ... Мало кому интересна эта не очень простая тема ... Наверно надо её удалить ... А то я тут в основном сам с собой разговариваю ... ![]() *************************** Obviously this theme is not interesting to the majority of modders ... At this forum i talk to myself ... Likely the theme should be deleted ... ![]()
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 03-18-10 at 03:45 PM. |
![]() |
![]() |
![]() |
#8 |
Helmsman
![]() Join Date: Apr 2008
Location: New York City, USA
Posts: 105
Downloads: 323
Uploads: 0
|
![]()
And it's very interesting to Playable Warship folks like myself.
How cool would it be to have (and see in external view) 20 or 30 addtional crew on the bridge...on the deck...at flak and deck gun battlestations...the possibilities are endless here! Right now in WSM 2.0 for example, we're limited to only 5 watch crew (max in GWX and stock SH3) with a few crudely modeled AI at AA batteries / DC stations...in external view, the Capital ships look almost abandoned...(SH4 seems to have fixed this with more AI crew on the decks / at flak, DC and gun positions) so keep up the good work, Anvart! Easy_Eight65
__________________
![]() "You may fire when ready, Gridley." --Commodore George Dewey |
![]() |
![]() |
![]() |
#9 |
Seasoned Skipper
![]() Join Date: Sep 2006
Location: Russia
Posts: 700
Downloads: 136
Uploads: 0
|
![]()
Анварт - ты немного не прав в своём выводе. Просто таких гуру как ты единицы, а поднятый тобой вопрос слишком сложный для моддинга и его обсуждение не самое простое для большинства.
Спасибо за твои моды ещё раз. |
![]() |
![]() |
![]() |
#10 |
Admiral
![]() Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
|
![]()
... но до сих пор никто не пытался говорить "конкретно" и не давал каких-либо интересных конструктивных предложений ...
__________________
Alex ® ![]() Moses said: "Don't create yourself an idol"... Last edited by Anvart; 06-23-10 at 02:20 AM. |
![]() |
![]() |
![]() |
#11 |
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
|
![]()
Moin Anvart,
this is incredibly valuable information. Many thanks for sharing. And kudos to Skwas for S3D. It makes modding so much easier. This is the result: ![]() Regards, DD
__________________
|
![]() |
![]() |
![]() |
#12 |
GWX Project Director
|
![]()
Just when you think that things can't get any more interesting... Diving Duck and Anvart storm ahead with a new masterpiece!
![]() ![]() ![]() |
![]() |
![]() |
![]() |
#13 |
Old Gang
|
![]()
Hats off, DD...
That moving periscope is a genius idea! ![]()
__________________
To each his own |
![]() |
![]() |
![]() |
#14 | |
Grey Wolf
![]() Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
|
![]()
Hey Anvart,
Quote:
![]() Did you change the hardcode -to trigger the animation via Rise/Lower_whole_obs_periscope or -to make 'obj_Extensible' available for interior use? Regards, DD
__________________
|
|
![]() |
![]() |
![]() |
#15 |
Old Gang
|
![]()
Actually, hats off for both of you!
Not only for this, but for all the past modding. ![]()
__________________
To each his own |
![]() |
![]() |
![]() |
|
|