Selfmade Gamemode can't be seen by my colleague

6 replies [Last post]
siegmi
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2013-07-24
Posts: 4

Dear All,

Some friends and I are playing some customized version of Highlander. It worked fine until version 0.9.18. Now we upgraded to version 0.9.19 and it still works fine playing locally.
Unfortunately, it doesn't work on the local network or on the official server. The gamemode isn't shown to my friend if I select it and i crashes by starting the game.
Has anyone an idea where this can come from?

Thank you in advance for your help.

Cheers
siegmi

Star and Moon
Star and Moon's picture
User offline. Last seen 6 days 12 hours ago. Offline
Joined: 2010-04-03
Posts: 718

That's because everyone has to have to script's files on there computer in order to play it online. Send him the files and it will work. Smile

siegmi
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2013-07-24
Posts: 4

Star and Moon allegedly wrote:

That's because everyone has to have to script's files on there computer in order to play it online. Send him the files and it will work. Smile

Sorry for being a bit imprecise. Both of us have the identical Scripts on each computer and even have the same timestamp for the files (I did my own debian package for it so that we for sure have the same version).
File permissions shouldn't be an issue too.

Vatten
Vatten's picture
User offline. Last seen 51 weeks 3 days ago. Offline
Joined: 2009-09-02
Posts: 48

I guess, there is a script misplacement.
Someone probably placed the script in the *home* path and the other in the *game* path.
Installed scripts, (eg Highlander, Space invasion ...) are placed into:

/usr/share/hedgewars/Data/Scripts/Multiplayer (Linux)
(dunno mac path) (OSX/Mac)
C:/Program files/Hedgewars/Data/Scripts/Multiplayer (Windows)

(paths may vary)
I guess your script should be placed into:

~/.hedgewars/Data/Scripts/Multiplayer (Linux)
~/Library/Application Support/Hedgewars/Data/Scripts/Multiplayer (OSX/Mac)
My Documents/Hedgewars/Data/Scripts/Multiplayer (Windows)

if the script is shown as:
*-your scriptname-
NOT
-your scriptname-
Then you know, its placed in the *right* folder (home path).

NOTE: You can place the script in the game path, but i really dont recommend it.

Have fun :P

Vattenania, my beloved motherland, my beloved homeland! You are always with me in my thoughts and in my heart!

nemo
nemo's picture
User offline. Last seen 1 week 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Due to a bit of a bug in how the * in front of dlc content was implemented in .19, installing the script globally results in a script name mismatch since unfortunately the * is considered part of the name, and the global script would not have it.
But yes, installing it globally doesn't make much sense anyway, besides requiring root to do, which seems a bit silly.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

siegmi
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2013-07-24
Posts: 4

Thank you for your answers. Unfortunately, this wasn't the problem. We tried to put it in the
~/.hedgewars/Data/Scripts/Multiplayer as well as /usr/share/hedgewars/Data/Scripts/Multiplayer for both of the computers. It didn't work.

I've got really no idea what's the problem...

siegmi
User offline. Last seen 5 years 32 weeks ago. Offline
Joined: 2013-07-24
Posts: 4

Soo we found out what the problem was Wink Smiley He forgot renew the file from the home folder. So we had 2 different versions. As he also forgot to remove it afterwards it took first the file from the home folder so it wasn't possible to use it.

Thanks for your help Wink Smiley

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]