Author Topic: Headless servers + mod section → same files  (Read 977 times)

uncle

  • Guest
Headless servers + mod section → same files
« on: 11 March 2012, 16:38:56 »
It would be nice if files uploaded to the mod center would be automatically uploaded to the headless servers.

Fot example titi and titi-son made new tilesets lately (Minecraft and the other one with volcanos) but we (the majority of MG players), who cannot create a network game, must rely on headless servers.

uncle

  • Guest
Re: Headless servers + mod section → same files
« Reply #1 on: 12 March 2012, 16:52:40 »
Also, files on the Glest Wiki (especially tilesets) should be available in the mod center too.

And if users could submit/suggest submitting a file to the mod center, that would be really cool :)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Headless servers + mod section → same files
« Reply #2 on: 12 March 2012, 17:34:22 »
You can do it!  :)

Step one: Make a concept on how to implement it. Reuse or be backwards compatible to what's already there. Keep in mind that headless servers are not usually adminstered by the same who run the masterserver or develop the game. Ask others to help you as needed.
Step two: Use your existing PHP coding abilities to implement it. Ask others to help you as needed.
Step three: Get a warm feeling and possibly some applause because you actually contributed to the game.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

uncle

  • Guest
Re: Headless servers + mod section → same files
« Reply #3 on: 12 March 2012, 18:25:50 »
OK, I will take a look at it.

Who is in charge of managing the mod center? titi?

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Headless servers + mod section → same files
« Reply #4 on: 14 March 2012, 00:06:10 »
I think Titi and I did it lately.

Good luck, and please keep us posted how you're coming.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

treba

  • Guest
Re: Headless servers + mod section → same files
« Reply #5 on: 17 March 2012, 15:36:27 »
i have a script for the engineers that automatically downloads maps. it should be quite easy to modify it so it also looks for techtrees and tilesets. it's just a hack, but hey, it does the job. the crc check does not yet work, though, but that's an upstream problem
Code: [Select]
#!/bin/bash

cd `dirname $0`

MAPLIST=`curl http://master.megaglest.org/showMapsForGlest.php 2>/dev/null`
MAPFOLDER=../gamedata/maps
GAMEEXECPATH=../gamedata/megaglest
LOGFILE=./logs/syncmaps.log

while IFS= read;do
        OIFS=$IFS
        IFS='|' read -ra ARRAY <<< "$REPLY"
        if [ ! -e $MAPFOLDER/"${ARRAY[0]}" ]; then
                echo "download map ${ARRAY[0]}" >> $LOGFILE
                wget -P "$MAPFOLDER" "${ARRAY[4]}" > /dev/null 2>&1
                #CRC=`$GAMEEXECPATH --show-map-crc="${ARRAY[0]%.*m}" | grep "${ARRAY[2]:1}"`
                #if [ -z "$CRC" ]; then
                        #echo "crc-check failed - removed file" >> $LOGFILE
                        #rm $MAPFOLDER/"${ARRAY[0]}" > /dev/null 2>&1
                #fi
        fi
        IFS=$OIFS
done< <(echo "$MAPLIST")