mp_generator - ryzom/ryzomcore GitHub Wiki


title: MP Generator description: published: true date: 2023-03-01T05:15:50.849Z tags: editor: markdown dateCreated: 2022-03-06T02:24:38.768Z

From "mp_generator.doc".

Basics

  • Copy all files in \\server\code\tools\leveldesign\mp_generator to your L:\Moulinette MP
  • The source file to edit is \\Server\leveldesign\raw_material\v4_source_tables2.xls. Edit it directly from server, to avoid conflicts.
  • When you ended some change (typically in "Families and properties v4" sheet) click the Save CVS button. Check the moulinette dir (should be L:\Moulinette MP)
  • Then just go to the L:\Moulinette MP directory
  • Verify that your L:\Moulinette MP\raw_material_generation.cfg is correct, especially for the variables
    • LevelDesignPath = "L:\"
    • TranslationPath = "R:\code\ryzom\translation\"

The cfg is replaced each time you copy it from \\server\code\... => you may have to change this line if necessary (if you don't have a R:) {.is-warning}

  • execute mp_generator.exe in this dir
  • Look log.log for any possible error.
  • Check Files To Commit (see below)

I just want to add some new creatures so they have their quartered raw materials generated

  • Just add them to the bestiary (into the correct path in L: )
  • Execute the process explained in Basics above (you need to do all the stuff to be sure you'll have code/data up to date)
  • After commiting the files (see Files To Commit), you will also need to assign by yourself the new raw_material_assignement in leveldesign/Game_elem/Creature/raw_material_assignment/*.creature to the real creatures (make them parent of the new creatures added, see christophe)

Files to commit

Before committing files, don't forget to update, because most of files remain the same and don't have to be committed.

  • In leveldesign/DFN/game_elem/ _item
    • item_mp_family.typ
    • item_mp_group.typ
  • In leveldesign/game_element/forage_source
    • _ic_families.forage_source
  • In leveldesign/game_element/sitem/raw_material
    • New .sitem files in each directory
  • In leveldesign/game_element/deposit_system/mps
    • New .mp files
  • In leveldesign/Game_elem/Creature/raw_material_assignment
    • New .creature files
  • In translation/work
    • wk.uxt
    • item_words_wk.txt

Other tasks

  • Move the generated doc (**.html*) to a new addendum directory created in *\\server\gamedesign_shared\raw_material_generation\_doc_generee
  • If the RM is forageable, need to be in a deposit, add it into a deposit primitive.
  • Register the raw materials: Ask a coder to run ryzom/update_sheet_id.bat to update sheetid.bin (when new files are added) with the new set of raw material sheets.
  • Test (see below)
  • Give access to redacted. to your updated v4_source_tables2.xml
  • If there are new crafting raw materials for which the player should be able to make a specialized prospection (not mission raw materials), tell redacted. (a new forage brick need to be added).

Testing

  • Update from CVS
  • In data in the client directory, delete sitem.packed_sheets and if necessary creature.packed_sheet. In data_shard in the server (EGS) directory, delete egs_items.packed_sheets and if necessary egs_creatures.packed_sheets.
  • Launch server & client
⚠️ **GitHub.com Fallback** ⚠️