MTG items not available / missing

ketaminko

New Member
Joined
May 14, 2023
Messages
22
I set up a fresh install of MTG and yes I also added the MTG TRE files when building the core.
However, in game, none of the new items are available even if I try to gm them in

/generate items from the mtgserver/MMOCoreORB/bin/scripts/object/custom_content dir

I just keep getting file entered not valid, please be sure to use the draft schematics server scripts path not client path

what have I done wrong?
 

Pastafreak

New Member
Joined
Mar 24, 2023
Messages
24
I believe you have to go into scripts/object/serverobjects.lua and direct it to include the server objects file in the custom_content folder. You will have to do the same for the mobile custom_content files.
 

ketaminko

New Member
Joined
May 14, 2023
Messages
22
I have modded my files but things are still not working.


swgemu_live.cfg
maxSearchPriority=23
searchTree_00_22=mtg_patch_23.tre
searchTree_00_21=mtg_patch_22.tre
searchTree_00_20=mtg_planets.tre
searchTree_00_19=mtg_patch_21.tre
searchTree_00_18=mtg_patch_019.tre
searchTree_00_17=mtg_patch_018.tre
searchTree_00_16=mtg_patch_017.tre
searchTree_00_15=mtg_patch_016.tre
searchTree_00_14=mtg_patch_015.tre
searchTree_00_13=mtg_patch_014.tre
searchTree_00_12=mtg_patch_013_configurable_02.tre
searchTree_00_11=mtg_patch_012_configurable_01.tre
searchTree_00_10=mtg_patch_011_files_01.tre
searchTree_00_9=mtg_patch_010_object_01.tre
searchTree_00_8=mtg_patch_009_Shader_01.tre
searchTree_00_7=mtg_patch_008_texture_04.tre
searchTree_00_6=mtg_patch_007_texture_03.tre
searchTree_00_5=mtg_patch_006_texture_02.tre
searchTree_00_4=mtg_patch_005_texture_01.tre
searchTree_00_3=mtg_patch_004_appearance_04.tre
searchTree_00_2=mtg_patch_003_appearance_03.tre
searchTree_00_1=mtg_patch_002_appearance_02.tre
searchTree_00_0=mtg_patch_001_appearance_01.tre


Config.lua

------TRE config------
TrePath = "/home/swgemu/Desktop/SWGEmu",
TreFiles = {
"mtg_patch_23.tre",
"mtg_patch_22.tre",
"mtg_planets.tre",
"mtg_patch_21.tre",
"mtg_patch_019.tre",
"mtg_patch_018.tre",
"mtg_patch_017.tre",
"mtg_patch_016.tre",
"mtg_patch_015.tre",
"mtg_patch_014.tre",
"mtg_patch_013_configurable_02.tre",
"mtg_patch_012_configurable_01.tre",
"mtg_patch_011_files_01.tre",
"mtg_patch_010_object_01.tre",
"mtg_patch_009_Shader_01.tre",
"mtg_patch_008_texture_04.tre",
"mtg_patch_007_texture_03.tre",
"mtg_patch_006_texture_02.tre",
"mtg_patch_005_texture_01.tre",
"mtg_patch_004_appearance_04.tre",
"mtg_patch_003_appearance_03.tre",
"mtg_patch_002_appearance_02.tre",
"mtg_patch_001_appearance_01.tre"


This part I have not done this because I can't find any guides
scripts/object/serverobjects.lua
mobile custom_content files.
 

Pastafreak

New Member
Joined
Mar 24, 2023
Messages
24
In scripts/object/serverobjects.lua make sure you have an entry that includes the custom_content folder.
the line should look like this - includeFile("custom_content/serverobjects.lua")

in scripts/mobile/serverobjects.lua you will need to add the same entry to include the mobile custom_contents.
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
I set up a fresh install of MTG and yes I also added the MTG TRE files when building the core.
However, in game, none of the new items are available even if I try to gm them in

/generate items from the mtgserver/MMOCoreORB/bin/scripts/object/custom_content dir

I just keep getting file entered not valid, please be sure to use the draft schematics server scripts path not client path

what have I done wrong?
You have to use the command..

/object createitem <objectPath>

so something like..

/object createitem object/tangible/tcg/series1/decorative_display_case_02.iff
 

ketaminko

New Member
Joined
May 14, 2023
Messages
22
As far as I can see the scripts are already in place


scripts/object/serverobjects.lua

--New Content
includeFile("custom_content/serverobjects.lua")

-- Custom content - Loads last to allow for overrides
includeFile("../custom_scripts/object/serverobjects.lua")


and

scripts/mobile/serverobjects.lua

-- Custom content - Loads last to allow for overrides
includeFile("../custom_scripts/mobile/serverobjects.lua")



When I do the create item command ingame I don't get warning messages anymore but it doesn't spawn anything also
/object createitem object/tangible/tcg/series1/whatever item



My server is also running on the mtg TRE files only, I have removed the box standard tre's

As I said everything works apart from MTG content

Here is my TRE set up readout
 
Last edited:

Tyclo

New Member
Joined
Nov 23, 2016
Messages
16
As Lasko mentioned, use the /object createitem <objectPath> command to spawn items.

Follow his instructions and try running the follow command: /object createitem object/tangible/tcg/series1/decorative_display_case_02.iff

If that fails, please comment with the exact response you receive in the client, or even post a screenshot.
 

ketaminko

New Member
Joined
May 14, 2023
Messages
22
As Lasko mentioned, use the /object createitem <objectPath> command to spawn items.

Follow his instructions and try running the follow command: /object createitem object/tangible/tcg/series1/decorative_display_case_02.iff

If that fails, please comment with the exact response you receive in the client, or even post a screenshot.
No message
No item
Nothing
I even copied and pasted the /object createitem object/tangible/tcg/series1/decorative_display_case_02.iff to make 100% sure what I typed was correct.
same as before.
 

Tyclo

New Member
Joined
Nov 23, 2016
Messages
16
No message
No item
Nothing
I even copied and pasted the /object createitem object/tangible/tcg/series1/decorative_display_case_02.iff to make 100% sure what I typed was correct.
same as before.
Something I should've asked, but no message in the server console?

If there's no message, typically it means the entry is missing in the crc string table. What that means is the object is actually being generated, but because it's not included in the table at misc/object_template_crc_string_table.iff, the object won't display in the client. I have a strange feeling that the crc string table you have only includes objects from the base files/is from Publish 14 .

Before delving into that, I noticed on your TRE files list you have mtg_patch_23.tre enabled, remove it from the server and the client and try spawning an item. I have a vague memory of that tre file having issues.

Next, check your SWG client directory where your executable is located, make sure there isn't a "random" object_template_crc_string_table.iff in a folder called "misc". If so, delete it. Try running the game.

If that doesn't exist, open all your MtG tre files in SIE, go to misc >> object_template_crc_string_table.iff, check the version history and look for the "largest" version of the file. Extract it, save it, if a "misc" folder doesn't exist in your SWG client directory, create it, then place the object_template_crc_string_table.iff file you just made in it. Launch the game.

I'd upload a valid object_template_crc_string_table file itself, but unfortunately I'm not on a PC with SIE or the MtG tres.
 

ketaminko

New Member
Joined
May 14, 2023
Messages
22
If that doesn't exist, open all your MtG tre files in SIE, go to misc >> object_template_crc_string_table.iff, check the version history and look for the "largest" version of the file. Extract it, save it, if a "misc" folder doesn't exist in your SWG client directory, create it, then place the object_template_crc_string_table.iff file you just made in it. Launch the game.

I'd upload a valid object_template_crc_string_table file itself, but unfortunately I'm not on a PC with SIE or the MtG tres.
removed mtg_patch_23.tre
Extracted object_template_crc_string_table.iff from mtg22.tre because it was 2megs the others are smaller.
placed in a folder called misc
loaded the game
same thing

No message
No item
Nothing
 
Top Bottom