GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.24k stars 811 forks source link

SDTD Mod (Request? / mods_list.sh) #3621

Open devtos opened 2 years ago

devtos commented 2 years ago

Hey, i like to play 7d2d and added a mod to mods_list.sh but got a problem with the unpacked dir. Unpacked theres a folder called like the zip and i would like to move the content of this to ../ and delete the zip-named-folder.

My code till now is like this:

mods_list.sh


#War of the Walkers Mod
wotwmodversion="v8-stable"
wotwmodlatestfile="war-of-the-walkers-mod-${wotwmodversion}-master.zip"
wotwmoddownloadurl="https://gitlab.com/dwallorde/war-of-the-walkers-mod-v8-stable/-/archive/master/${wotwmodlatestfile}"
wotwmodurl="${wotwmoddownloadurl}"
# 7D2D War of the walkers mod     wotwmodurl
mod_info_wotwmod=( MOD "war-of-the-walkers-mod" "war-of-the-walkers-mod for 7 Days To Die" "${wotwmodurl}" "${wotwmodlatestfile}" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "7 Days To Die;" "Dwallorde" "https://7daystodiemods.com/war-of-the-walkers-mod/" "War of the Walkers Mod" )```
johnoclockdk commented 2 years ago

@devtos any logs

devtos commented 2 years ago

where can i find a suitable log? i dind't found something that's showed the mod installation. here's a screenshot of the problem.

the script above unpacks in "war-of-the-walkers-mod-v8-stable-master" and after this have to move the files by hand from "war-of-the-walkers-mod-v8-stable-master" to "../". Then everythings fine.

image

johnoclockdk commented 2 years ago

where can i find a suitable log? i dind't found something that's showed the mod installation. here's a screenshot of the problem.

the script above unpacks in "war-of-the-walkers-mod-v8-stable-master" and after this have to move the files by hand from "war-of-the-walkers-mod-v8-stable-master" to "../". Then everythings fine.

image

in the lgsm folder there will be a log folder

devtos commented 2 years ago

logs.zip

johnoclockdk commented 2 years ago
#War of the Walkers Mod
wotwmodversion="v8-stable"
wotwmodlatestfile="war-of-the-walkers-mod-${wotwmodversion}-master.zip"
wotwmoddownloadurl="https://gitlab.com/dwallorde/war-of-the-walkers-mod-v8-stable/-/archive/master/${wotwmodlatestfile}"
wotwmodurl="${wotwmoddownloadurl}"
# 7D2D War of the walkers mod     wotwmodurl
mod_info_wotwmod=( MOD "war-of-the-walkers-mod" "war-of-the-walkers-mod for 7 Days To Die" "${wotwmodurl}" "${wotwmodlatestfile}" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "7 Days To Die;" "Dwallorde" "https://7daystodiemods.com/war-of-the-walkers-mod/" "War of the Walkers Mod" )```

you missing the mods_global_array=( "${mod_info_wotwmod[@]}") from the list

devtos commented 2 years ago

thx, but no, i just left this part out, because its not the problem.

maybe my problem is to complex, i will try it again to descripe what my problem is.

the mod gets unpackt in a folder with the name of the zip.

thats my problem, i can install the mod with the lgsm way, works fine, great work by you guys.

AFTER the installation i can't use it coz everything is in the wrong folder. Please see the screenshot. its in "/home/sdtdserver/serverfiles/war-of-the-walkers-mod-v8-stable-master" but should be in "/home/sdtdserver/serverfiles/" .

i just want to move it (the content of the zip) from /home/sdtdserver/serverfiles/war-of-the-walkers-mod-v8-stable-master to /home/sdtdserver/serverfiles/

everything else works fine.

johnoclockdk commented 2 years ago

look likes it dont unpack the mod in right places right ?

devtos commented 2 years ago

right

devtos commented 2 years ago

look likes it dont unpack the mod in right places right ?

so, whats your idea? can you help or implement this mod by yourself?

johnoclockdk commented 2 years ago

atm work on some eles

devtos commented 2 years ago

and now?

johnoclockdk commented 2 years ago

i'm very busy with moving house and other coding sorry

vinanrra commented 2 years ago

Where is that "mods_list.sh" file? I can check it and see if i can fix it @johnoclockdk @devtos

h3o66 commented 2 years ago

Where is that "mods_list.sh" file? I can check it and see if i can fix it @johnoclockdk @devtos

lgsm/functions/

vinanrra commented 2 years ago

Btw I have a script that do what you want, if u want I can link it

h3o66 commented 2 years ago

Btw I have a script that do what you want, if u want I can link it

would be probably easier if you could do a PR based on tthe develop branch

vinanrra commented 2 years ago

Btw I have a script that do what you want, if u want I can link it

would be probably easier if you could do a PR based on tthe develop branch

The problem it's that my script it's outside of LinuxGSM, and I don't know how that function works :/

johnoclockdk commented 2 years ago

@devtos im work on this mod atm