Author Topic: Python autoupdater  (Read 9065 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
Re: Python autoupdater
« Reply #15 on: December 01, 2011, 09:13:14 pm »
0
:(

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 #16 on: December 01, 2011, 11:28:55 pm »
0
:(

Shouldn't you change your avatar as well now?

Also, nonetheless i'm always interested in how other people code thing and since when I had to use Python for half a semester at uni my code was pretty basic despite netting me 98% (chip in with some narcasisstic bragging rights there) for the unit and i'm always interested in the "boundries" so to speak of how where the language will actually let you go.
I've asked before but I don't remember getting an answer, but what do you program the rest of the mod with? I'd assume one of the C's since I have a higher statistical chance of getting the right one with that! ;)
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 Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: Python autoupdater
« Reply #17 on: December 02, 2011, 01:42:36 am »
0
Shouldn't you change your avatar as well now?

Also, nonetheless i'm always interested in how other people code thing and since when I had to use Python for half a semester at uni my code was pretty basic despite netting me 98% (chip in with some narcasisstic bragging rights there) for the unit and i'm always interested in the "boundries" so to speak of how where the language will actually let you go.
I've asked before but I don't remember getting an answer, but what do you program the rest of the mod with? I'd assume one of the C's since I have a higher statistical chance of getting the right one with that! ;)


I think it's python, too. At least, many Warband scripts are in python.

Offline cmp

  • M:BG Developer
  • Supreme Overlord
  • *******
  • Renown: 2052
  • Infamy: 569
  • cRPG Player
    • View Profile
  • IRC nick: cmp
Re: Python autoupdater
« Reply #18 on: December 02, 2011, 04:24:34 am »
0
No, Python is just used as an intermediary compiler. The M&B scripting language consist of sequences (of items, operations, troops...).

Offline Tomas_of_Miles

  • Count
  • *****
  • Renown: 263
  • Infamy: 37
  • cRPG Player
  • Inactive
    • View Profile
  • Faction: Rusty mercenary siege engineer
  • Game nicks: Something with Tomas in it
Re: Python autoupdater
« Reply #19 on: December 02, 2011, 04:29:34 am »
+1
Interesting insight into coding. I am interested in writing programs and stuff (I am a Java noob though). I would love to see more jargon thrown about though with opinions on different approaches to things. Fascinating.
Professional poop cleaner

Offline HatsuneMiku

  • Peasant
  • *
  • Renown: 2
  • Infamy: 5
  • cRPG Player
    • View Profile
  • Game nicks: AEF_HatsuneMiku
Re: Python autoupdater
« Reply #20 on: December 03, 2011, 01:50:53 am »
0
This is written for Python 2.7 isn't it?
Fuck, I hate CentOS.

Offline Garrus

  • Knight
  • ***
  • Renown: 39
  • Infamy: 3
  • cRPG Player
  • Imperial Potato Peeler
    • View Profile
  • Faction: Great Khans
  • Game nicks: GK_Vakarian, GK_Garrus, Puncinella, GK_DrZoidberg
  • IRC nick: Garrus
Re: Python autoupdater
« Reply #21 on: December 03, 2011, 08:48:08 pm »
0
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.

How is coding style related to Python, which is a multi-paradigm language ?
It looks like you invest too much energy into hating, instead of reading at least a beginner tutorial :)
If you think Python is madness, you didn't see Haskell or Clean yet.
This code is obviously is not about maintainability or handling extrem cases, it just solves the problem.
visitors can't see pics , please register or login

Offline Kafein

  • King
  • **********
  • Renown: 2203
  • Infamy: 808
  • cRPG Player Sir White Rook A Gentleman and a Scholar
    • View Profile
Re: Python autoupdater
« Reply #22 on: December 03, 2011, 08:54:50 pm »
0
How is coding style related to Python, which is a multi-paradigm language ?
It looks like you invest too much energy into hating, instead of reading at least a beginner tutorial :)
If you think Python is madness, you didn't see Haskell or Clean yet.
This code is obviously is not about maintainability or handling extrem cases, it just solves the problem.

I know, it's not about the coding style. I just don't like the Python syntax. Especially the lack of braces. I really like some aspects of it though. I'm more like a OO extremist so I like smalltalk, which isn't really a language that "gets things done" at all. I heard plenty of good things about Haskell, and it seems interesting. But never tried it.

As I said, this code is very small and does what it's written for, good enough.
« Last Edit: December 03, 2011, 08:56:17 pm by Kafein »

Offline Airith

  • Peasant
  • *
  • Renown: 9
  • Infamy: 1
  • cRPG Player
  • NA Community Admin
    • View Profile
  • Faction: Among The Shadows
  • Game nicks: Airith_ATS, Solanar_II_ATS
  • IRC nick: Airith
Re: Python autoupdater
« Reply #23 on: June 13, 2012, 08:45:59 am »
0
This broke recently. The remote_filelist retrieved is CVS, while the .gz version of the filelist.txt is equal sign value separated. I got mine working (didn't know Python, went from neutral to not a fan), but why have two different types?
And our time is flyin' see the candle burnin' low
Is the new world rising, from the shambles of the old
~The Rover - Led Zeppelin

Offline kono yaro!

  • Baron
  • ****
  • Renown: 129
  • Infamy: 127
  • cRPG Player
    • View Profile
  • Faction: Deserters
  • Game nicks: b0nk
Re: Python autoupdater
« Reply #24 on: June 13, 2012, 10:16:49 am »
-2
itt nerds