The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 66 - File: global.php(961) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 66 errorHandler->error_callback
/global.php 961 eval
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1617) : eval()'d code PHP 8.0.30 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1617) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1617 eval




Modding New modding abilities
#1
So as I understand from the description of the new version:

"This new update will includes new modding abilities"

that we will have some new modding abilities.

Care to elaborate?

Cool
Reply
#2
Haha ops, I forgot to add a description about it Blush
I will make a bigger topic about with the next release.

In general it is the in the media/xml/buildings folder where are the building xml files are.

Now many of the buildings (not all), are loaded through the xml files only and not being hard coded. Which means that for example if the player wants to make more bed types they can just edit the "BedRoom.xml" file in the "xml/buildings/BedRoom" folder to make more beds.

To get just a little bit into detail with this...
BedRoom.xml has an element "<childbuilding>"
Code:
<childbuilding>
    <nameid>BedroomImpBed</nameid>
</childbuilding>
Tells the game to load the BedroomImpBed into the game as a gameobject in the BedRoom.

If the player would like to make their own bed for Orcs with a clown appearance they could add:
Code:
<childbuilding>
    <nameid>BedroomOrcClownBed</nameid>
</childbuilding>

Then copy the "BedroomOrcBed" folder and rename it to "BedroomOrcClownBed", and from there edit everything inside the new folder to fit the players wanted bed design.


This only works for some objects in the game that isn't to advanced atm, objects like the IronSmelter or FarmLand is a little bit to advanced to be modable atm. But if you would like the player to be able to build new Rock types you can edit the "Media/XML/Buildings/Buildings.xml" file and add...
Code:
<building>
    <nameid>Obsidian</nameid>
  </building>
...for example and copy the "Media/XML/Buildings/Rock" folder and rename it to "Obsidian" and then edit everything in it to fit the obsidian design.

But as I said, I will make a more detailed description for it with the next release Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)