====== Added fishing activity ====== Writing in progress This is a draft: "I added the elements as my memories flooded(i had started to record everything as i was doing with the fisherman, but it was had to much to do/undo/redo because i was blocked in my mind that i finally gave up). It will therefore be necessary to recover "the whole" in a somewhat more logical way, to be able to give some explanations and to clean up garbage files that remains from different experiments. On the other hand, realizing this tutorial, i admit that i may be a little "wrapped" about it. Because, this is almost all the created/modified code i have. For points "1 to 8", it's advise'able that you __after__ creation and modification to the files... __open them with__ [[georges_editor]] which does a nice syntax check. For point 8, viewing/modifying the primitive file, the better option is to use [[en:world_editor]]. ===== Add animation for ra ===== Edit file leveldesign/game_element/anim/anim_set/homin/fy_hom/fy_hom_default_fi_.animation_set \\ Add(to the end of the file) just before the last 5 tags %% %%: I recognize the structure not being as "clean" as it could be, this is because of the animation_set of the fishing! The emotes "firework_01" and "firework_02" are crushed by those of the fishing. But can be considered as only temporary. ===== Create the necessary objects ===== Create the directory leveldesign/game_element/sitem/fishing_tool and add: * The file icrtfi.sitem
Special effects: FIGHT_ADD_CRITICAL FIGHT_VAMPIRISM MAGIC_DIVINE_INTERVENTION FORAGE_NO_RISK:num MAGIC_SHOOT_AGAIN CRAFT_ADD_STAT_BONUS CRAFT_ADD_LIMIT FORAGE_ADD_RM:num1:num2
* The file mbait01.sitem
* The file mpois02.sitem
===== Creating the creature "clapclap" ===== ==== The .creature file ==== Create the leveldesign/game_elem/creature/fauna/bestiary/water/clapclap.creature file and add:
==== The parent file of the creature ==== Create the leveldesign/game_elem/creature/fauna/parent_creature_prototype/_clapclap.creature file and add:
==== The parent file of the creature for the ecosystem ==== Create the file leveldesign/game_elem/creature/fauna/ecosystem/forest/_clapclap_for.creature and add:
==== Raw materials on the creature ==== Create the file leveldesign/game_elem/creature/raw_material_assignment/_clapclap_mp.creature and add:
==== The placement file ==== This object will be used to triangulate the position of the player and the "clapclap". Create the leveldesign/game_elem/creature/objects/object_fisherman_fish_place.creature file and add:
==== The body protection file of the creature ==== Create the leveldesign/game_elem/items/armor/creature_armor/creature_body_armor_specific/clapclap_chest.item file
====== Creating the creature's animations ===== As info, i generated the files below(as well as those of all the creature assets) by program according to the names contained in the animations(not given, as it was a oneshot). Automatic generation has it's limitations, so it is necessary to make some changes to have the animations as realistic as possible. Create the directory leveldesign/game_element/anim/anim_set/pet/clapclap and add: * The file clapclap.animset_mode
* The file %%clapclap_alert__.animation_set%%
* The file %%clapclap_combat__.animation_set%%
* The file %%clapclap_death__.animation_set%%
* The file %%clapclap_default__.animation_set%%
* The file %%clapclap_eat__.animation_set%%
* The file %%clapclap_hungry__.animation_set%%
* The file %%clapclap_rest__.animation_set%%
* The file %%clapclap_swim__.animation_set%%
===== Add the anim_set to the list ===== Edit the leveldesign/game_element/anim/anim_set/entities.animset_list file. Add (before the last %% %%) the following code: ===== Create the skill file: .sbrick ===== Create directory leveldesign/game_element/sbrick/others/fish Create the bfpafi01.sbrick file and add the following code:
===== Add the primitives file ====== Add fisherman.primitive file to primitives/newbieland I do not provide the code of the file(unless you prefer to type 90K lines of xml tags and the code is even more abstruse); You can retrieve it in the repository. I have done quite a lot of experiments on this file and i can "concede" that it is far from being perfect(but in general the code is documented). In order to unlearn a sbrick(a functionality presented on the server but not in the WorldEditor and the primitive compiler), i modified some configuration files and the primitives compiler(it will be necessary to recover the last version of the compiler and the Config files). ===== Add the primitive file to the shard ===== Editing the file ''primitives/primitives.cfg'': Add the following code(before the last occurrence of %% "MAPEND", %%) "FILE fisherman.primitive", ===== Send changes to the Khanat project ===== Send changes to repository https://depots.khaganat.net/scm/hg/khanat-ressources branch lirria In order to do this, you must of course have write access to the repository. \\ Position at the root of it's local repository, then type the following commands(answer appropriately to all the asked questions) **- I have to revalidated this part**: $ hg pull $ hg update $ hg commit $ hg push -b lirria ===== Updating customer data ====== ==== Retrieving Lirria customer data ==== Retrieve(locally) the deposit of customer data. * Create the currdata directory and position yourself in it. * Type the following commands: ~/currdata$ hg pull https://depots.khaganat.net/scm/hg/lirria-client-data $ Hg update ==== Adding data ==== Add the following files to the currdata/creatures/fauna/water/clapclap directory of your local repository GO_MO_Clapclap.shape ju_mo_clapclap.dds TR_MO_Clapclap.shape tr_mo_clapclap.skel tr_mo_clapclap_attaque_1.anim tr_mo_clapclap_attaque_2.anim tr_mo_clapclap_baille.anim tr_mo_clapclap_demitour_droit.anim tr_mo_clapclap_demitour_gauche.anim tr_mo_clapclap_idle.anim tr_mo_clapclap_impact.anim tr_mo_clapclap_intimidation.anim tr_mo_clapclap_mort.anim tr_mo_clapclap_mort_cycle.anim tr_mo_clapclap_nage.anim tr_mo_clapclap_occupation.anim tr_mo_clapclap_recule.anim tr_mo_clapclap_senti_danger.anim tr_mo_clapclap_sortirdelo.anim tr_mo_clapclap_straffe_droit.anim tr_mo_clapclap_straffe_gauche.anim tr_mo_clapclap_stun_end.anim tr_mo_clapclap_stun_init.anim tr_mo_clapclap_stun_loop.anim tr_mo_clapclap_tournedroite.anim tr_mo_clapclap_tournegauche.anim ==== Send data to the repository ==== Send your changes to the https://depots.khaganat.net/scm/hg/lirria-client-data repository(by answering the questions correctly) ~/currdata$ hg commit ~/currdata$ hg push ===== Recreate the .bnp files on the patch server ===== Provide client data on the server. \\ Connect to the server with the account that is OK and run the command: ~/$ ./script_regenerer_bnps_client.sh ===== Updating server and patch for client ===== Update client and server data**\\ Connect to the server with the account that is fine and then run the command: ~/$ ./script_mise_a_jour_data_serveur.sh {{tag>animation_set primitives sitem creature}}