midspace / Space-Engineers-Admin-script-mod

Modding script for Space Engineers with dozens of Admin commands for creating game scenarios or supporting servers.
43 stars 13 forks source link

Adding mod - cant find server #180

Closed Silvrav closed 7 years ago

Silvrav commented 7 years ago

Hi

So I wanted to add this Mod to my existing server.

Went to existing sandbox world and

removed : <mods /> replaced with:

<Mods>
    <ModItem>
      <Name>316190120.sbm</Name>
      <PublishedFileId>316190120</PublishedFileId>
    </ModItem>
</Mods>

After saving and uploading back to server, restarting server and trying to connect via direct connect and my server IP it tells me Game no longer available....

Remove the above and I can join the game again.

Host is gameservers.com

midspace commented 7 years ago

Those changes look correct. What program did you use to make the changes? When you changed it back, did you use the same program, or simply restore from a copy or backup?

Silvrav commented 7 years ago

Hi @midspace

Stopped server Used filezilla to FTP in and go to save file Used notepad to edit and add mod. Saved-uploaded mod. restarted server Tried to join via direct link in game and tells me game not available anymore.

I used the same method above to remove the mod and just add back in via notepad. Restarted server and can then join

Silvrav commented 7 years ago

So i am now reading that sometimes a mod can take a while to DL. so have reinstated the mod in the sandbox file and will give it 5mins after restart to see if anything happens

Silvrav commented 7 years ago

ok, can report back that is not the issue....waited 15min and then restarted the server again...still not working

khamseen commented 7 years ago

Are you using standard Notepad or Notepad++? Standard Notepad has a habit of changing formatting which can break xml. Your log file would probably have some indication of why the server has failed to start.

Silvrav commented 7 years ago

@khamseen standard notepad. Thing is, other things that I added worked.

will try in notepad++

Where can i find the log file?

khamseen commented 7 years ago

I've never used your host but the log file is usually in main Space Engineers directory on servers. It's simply called SpaceEngineers.log

Silvrav commented 7 years ago

capture Here is the notepad++ screenshot.

and here is the log

image

Silvrav commented 7 years ago

So it says local mods not allowed? how does this get fixed?

Must i download entire save game to my local drive, apply mods and upload again?

khamseen commented 7 years ago

Local mods just means they can't be in an extracted format and have to be workshop links which that is so I'm not sure why it's complaining about it. It's been a while since I manually added mods to a server via the sbc file but that should be working and it should automatically download the mod to the appropriate directory on your server.

Do you have the ability to input mod IDs via the control panel website interface for your server? If so, it might be worth trying that method just in case.

Silvrav commented 7 years ago

@khamseen unfortunately not. Only FTP access

khamseen commented 7 years ago

At this point my only suggestion would be to open a support ticket with your server hosts. What you've done should have worked so unless midspace has any other ideas, I've no idea why it's causing a problem.

Silvrav commented 7 years ago

@khamseen thanks...will see if @midspace has some ideas

midspace commented 7 years ago

Silvrav, are you able to attach the entire log file?

jpcsupplies commented 7 years ago

Ok - this is how a steam mod is formatted - notice the spelling of "PublishedFileId"

You were spelling it "PublishFileId" (missing the "ed")

`

627371699.sbm
  <PublishedFileId>627371699</PublishedFileId>
</ModItem>

`

This is how a local mod is formatted - note the lack of a published file ID - because it didnt recognize "publishfileid" as a valid identifier, it ignored it and just saw the "name" and assumed it was a local mod. `

Economy
</ModItem>`
midspace commented 7 years ago

Yes, I didn't see that. The sample text provided in the opening post does not match the screen shot of the Sandbox.sbc file. The misspelling will cause the game to think it is a local mod.

This is the correct spelling:

<Mods>
    <ModItem>
      <Name>316190120.sbm</Name>
      <PublishedFileId>316190120</PublishedFileId>
    </ModItem>
</Mods>
khamseen commented 7 years ago

Wow, well spotted. I even copied the blurb from the first post to make sure it was right, didn't notice the misspelling in the screenshot.

Silvrav commented 7 years ago

Excellent and thanks for spotting that!

have just made the changes and will update if it worked! Thanks alot @jpcsupplies and all the others trying to assist

Silvrav commented 7 years ago

It worked! thanks guys...last question..I dont see the storage folder where I need to edit the MOTD file for message of the day? as the location changed?

midspace commented 7 years ago

The Server should create the folder. It will probably only appear after the first time you save the world with the mod active.

Silvrav commented 7 years ago

Great thanks @midspace. will save now and test

Silvrav commented 7 years ago

done and dusted! all working! thanks everyone!