Friday, July 12, 2019

Creating custom resources on swgemu

So once you get your server up and running you may want to create
your own custom resources and this is how you do it!

In case anyone else has this issue when you are running your
own server and trying to generate your own resources on the
server and it isn't letting you use the stats that you want it
is probably because the stat name is wrong. It seems
to be very picky about resource stat name format.

/gmcreatespecificresource radioactive res_potential_energy,1000
will spawn a radioactive of random type with 1000 PE (normal attribute
caps are ignored).

/gmcreateclassresource hide_leathery_lok res_quality,200 res_shock_resistance,800
will spawn a lokian leathery hide with 200 OQ and 800 SR

Now a really good list of all the resource names can be found at
Resource Tree


To find the correct name for all the stats I had to go digging
though the source code I found this in

Core3/MMOCoreORB/src/server/zone/objects/resource/ResourceSpawnImplementation.cpp

Here is a list of all the stats names off of resources and
the correct format to use.

res_cold_resist
res_conductivity
res_decay_resist
res_heat_resist
res_flavor
res_malleability
res_potential_energy
res_quality
res_shock_resistance
res_toughness


I hope this helps everyone else out that is running their own SWGEMU server currently and saves
you some time from having to dig though the source code.

 

Then when you want to give yourself the new resource it should have said on your screen
when you created the resource before the name of that.. Remember that because you are going
to need it now.
 
To give yourself some of that resource type in 
 
/resource create <name>  <amount>
 
So in this example I created a new steel_duralloy so it told me the name was Kihimi 
so for me to get some of that resource I type in  the following: 
 
/resource create Khimi 1000000

 
Some other commands you will need while creating new resources are bellow.

/resource <option> [params] Debug command to perform some type of raw 
                                               command with the resource manager.

/resource list <planet> Lists resources on specified planet

/resource info <resource name> Lists Info about a specific resource

/resource find <class> <attribute> <gt|lt> <value> [<and|or>
                       <attribute> <gt|lt> <value> [...]] FInds specific resouce

/resource create <name> [quantity] Spawns resource in inventory
 
/gmCreateClassResource <resourceClass> Creates a new resource based on the specified class. 
                                                                     Resource Tree

/gmCreateSpecificResource <specifiedResource> [amount] Creates a resource spawn of a 
                                                                                                 specific resource.

 

Player Run Cities Guide

 So you want to setup your own city some where.  To do this you will need certain skills I would recommend getting to Master Politician.    ...