Author Topic: Python autoupdater  (Read 9081 times)

0 Members and 1 Guest are viewing this topic.

Offline Espu

  • The good
  • Count
  • *****
  • Renown: 261
  • Infamy: 33
  • cRPG Player
    • View Profile
  • IRC nick: Espu
Python autoupdater
« on: November 29, 2011, 05:38:48 pm »
+2
Alternate auto-updater for servers and other special people. Version 0.1, try it and give feedback.

http://infinitum.dyndns.org/share/dev/crpg_autoupdater.py

If you don't know what this .py magic is or don't know how to run it, you're probably better off not trying it for now.

Offline Graf_Hodenschaf

  • Knight
  • ***
  • Renown: 38
  • Infamy: 27
  • cRPG Player
    • View Profile
  • Faction: Trade Guild
  • Game nicks: Graf_Hodenschaf
  • IRC nick: Graf_Hodenschaf
Re: Python autoupdater
« Reply #1 on: November 29, 2011, 05:42:12 pm »
0
Everybody knows that py stands for paraguay  8-)
Livestreaming crpg:  twitch.tv/beerman_aut

Offline FRANK_THE_TANK

  • King
  • **********
  • Renown: 1312
  • Infamy: 339
  • cRPG Player Sir White Knight
  • FluckCucker
    • View Profile
  • Faction: A Free and proud Peasant of Fisdnar!!!
  • Game nicks: FRANK_THE_TANK
  • IRC nick: Sippy sip
Re: Python autoupdater
« Reply #2 on: November 30, 2011, 01:18:32 pm »
0
Some one tell the AEF chumps! AHHHH!!! Time to roll back the clock I guess :}\
Fammi un pompino!

I think I have ball cancer in my right nut :(
Good news everybody! It's not nut cancer :)
Bad news everybody, I got dumped :(

Offline CoWorm

  • Knight
  • ***
  • Renown: 46
  • Infamy: 2
  • cRPG Player
    • View Profile
  • Game nicks: Conqueror_Worm, Nyarla
  • IRC nick: CoWorm
Re: Python autoupdater
« Reply #3 on: November 30, 2011, 01:39:28 pm »
0
Works like a charm. Love you Espu!

Offline Serfonz

  • Judge Serfonz
  • Count
  • *****
  • Renown: 193
  • Infamy: 29
  • cRPG Player
  • Oh Hi.
    • View Profile
  • Game nicks: Nord_Serfonz_the_Cowardly
  • IRC nick: Serfonz
Re: Python autoupdater
« Reply #4 on: November 30, 2011, 01:40:04 pm »
0
Appeared to work perfectly on Nordmen. (Probably cause worm did it and not me)

Inb4 server falls apart.
I'm not retreating, just advancing in another direction!

Offline CoWorm

  • Knight
  • ***
  • Renown: 46
  • Infamy: 2
  • cRPG Player
    • View Profile
  • Game nicks: Conqueror_Worm, Nyarla
  • IRC nick: CoWorm
Re: Python autoupdater
« Reply #5 on: November 30, 2011, 01:41:07 pm »
0
Oops. Server fell apart.  :rolleyes:

Offline bredeus

  • Earl
  • ******
  • Renown: 392
  • Infamy: 85
  • cRPG Player A Gentleman and a Scholar
  • there must be Peace
    • View Profile
  • Faction: Templars since 1096 AD
  • Game nicks: Templar_Brede
  • IRC nick: Brede
Re: Python autoupdater
« Reply #6 on: November 30, 2011, 02:04:42 pm »
0
thanks Espu. Gosh How i hate Python

Offline Tennenoth

  • Marshall
  • ********
  • Renown: 818
  • Infamy: 85
  • cRPG Player A Gentleman and a Scholar
  • "Bloody peasant archers!"
    • View Profile
  • Faction: Caravan Guild (Head)
  • Game nicks: Guard_Tenne; Guard_The_Biscuits; Guard_Bugden; Guard_Tennenuff
  • IRC nick: Tennenoth
Re: Python autoupdater
« Reply #7 on: November 30, 2011, 02:06:46 pm »
0
Interesting being able to get a look at the back-end stuff of cRPG there, always wanted to see how your code looks.
visitors can't see pics , please register or login

BullDog Clan member since 31/08/2010 / Caravan Guild member since 03/08/2010

How to understand what I say.
Always finish your tea and biscuits regardless of how terrible they are

Offline Espu

  • The good
  • Count
  • *****
  • Renown: 261
  • Infamy: 33
  • cRPG Player
    • View Profile
  • IRC nick: Espu
Re: Python autoupdater
« Reply #8 on: November 30, 2011, 04:13:30 pm »
0
Well that's pretty much 100% separate from everything else. :P

Offline chadz

  • The lazy
  • Supreme Overlord
  • *******
  • Renown: 3188
  • Infamy: 724
  • Sir Black King A Gentleman and a Scholar
    • View Profile
  • Faction: irc://
  • IRC nick: chadz
Re: Python autoupdater
« Reply #9 on: November 30, 2011, 04:32:03 pm »
0
It's a bit less documented than the rest of the code, but it's still an OK example.

Offline Espu

  • The good
  • Count
  • *****
  • Renown: 261
  • Infamy: 33
  • cRPG Player
    • View Profile
  • IRC nick: Espu
Re: Python autoupdater
« Reply #10 on: November 30, 2011, 05:30:33 pm »
0
Added an option (-w), WSE files are copied there after update.

Offline Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: Python autoupdater
« Reply #11 on: December 01, 2011, 01:26:41 pm »
0
It's a bit less documented than the rest of the code, but it's still an OK example.

Return statements all over the place... while 1 loops... uurgh

This code reassures me about the fact that I still hate python. Doesn't help you doing what you want at all. Instead, it says "Yeah you can do that, you can write anything anyway, I don't care". Furthermore, horrible readability (guess where 5-nested loops/conditions finish when you can only rely on indentation... Okay that's uncommon)

Apart from that, pretty decent.

Offline Espu

  • The good
  • Count
  • *****
  • Renown: 261
  • Infamy: 33
  • cRPG Player
    • View Profile
  • IRC nick: Espu
Re: Python autoupdater
« Reply #12 on: December 01, 2011, 03:25:36 pm »
0
Version 0.1. You're free to implement it in your favorite language and/or with better style.

Offline Jacko

  • OKAM Developer
  • ***
  • Renown: 839
  • Infamy: 99
  • cRPG Player Sir White Knight
  • Mappers Guild
    • View Profile
  • Faction: Fffnanguard!
  • Game nicks: Jacko
Re: Python autoupdater
« Reply #13 on: December 01, 2011, 04:02:24 pm »
0
Witchcraft!
Monkeys!

Offline Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: Python autoupdater
« Reply #14 on: December 01, 2011, 07:34:41 pm »
0
Version 0.1. You're free to implement it in your favorite language and/or with better style.

You seem offended  :(

That wasn't my intention  :(

-> you don't need top code style for a few hundred lines ^^