Show us yer programming projects!

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
KlaxonCow
Baaaaaaa!
Baaaaaaa!
Posts: 8447
Joined: Fri Dec 13, 2002 3:46 am 0
Location: A large grassy field.

Re: Show us yer programming projects!

Post by KlaxonCow »

By the way, the game runs nicely under WINE on Linux, in case anyone's interested to know that. :D
"Words ought to be a little wild - for they are assaults of thought on the unthinking."
- John Maynard Keynes
User avatar
Baggypants
Baaaaaaa!
Baaaaaaa!
Posts: 5328
Joined: Sun Mar 19, 2006 12:54 pm 0
Location: Salford(UK);
Contact:

Re: Show us yer programming projects!

Post by Baggypants »

KlaxonCow wrote:By the way, the game runs nicely under WINE on Linux, in case anyone's interested to know that. :D
I am.
"The eggs, get them!"
User avatar
evilpaul
Baaaa!
Baaaa!
Posts: 811
Joined: Wed Sep 29, 2004 2:01 pm 0
Location: #ukscene, helsinki branch
Contact:

Re: Show us yer programming projects!

Post by evilpaul »

Just cows..
Image

..and more cows..
Image
User avatar
Mark
Baaaaaa!
Baaaaaa!
Posts: 3611
Joined: Mon Apr 22, 2002 7:53 pm 0
Location: England

Re: Show us yer programming projects!

Post by Mark »

I'm also working on cows, for my game, STOMP (Super Thrustforce: Orbital Meat Police).

Well, specifically a giant alien-controlled mutant cyborg boss cow with laser udders and a habit of striking the "I'm a little teapot" pose. You get to shoot its tits off. When I tell my parents what I've been working on I tend to leave details like this out...

Needless to say there's an awful lot of placeholder art here, I'm mainly working on mechanics and will worry about the looks later...

Image
Benevolent Dictator of Bearcat Games
Twitter: #BearcatGames
User avatar
nyarla
Baaaaaa!
Baaaaaa!
Posts: 2820
Joined: Tue Jan 14, 2003 1:53 pm 0
Location: i said kiss me you're beautiful these are truly the last days
Contact:

Re: Show us yer programming projects!

Post by nyarla »

some kind of random polygon future city
Image
Image
User avatar
evilpaul
Baaaa!
Baaaa!
Posts: 811
Joined: Wed Sep 29, 2004 2:01 pm 0
Location: #ukscene, helsinki branch
Contact:

Re: Show us yer programming projects!

Post by evilpaul »

That looks totalling intriguing Nyarla!

And.. not more cows:


Captured in realtime from my AV app. Music from 4mat

Tried out an ASCII art vesion (actually using the ZX Spectrum font..) which looked cool but got old quite quickly
Image
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

This is total different from game programming. But hey, it was a small project :D

I've recently got a NAS and been looking into what I could automate on it. Currently its got the usual samba, media server stuff, but
why stop there... I've installed transmission (torrent server), couch potato (automatic movie downloader), and implemented flexget.

What is flexget? It basically sucks in RSS feeds of recent torrents from various sites like eztv, or even piratebay and automatically downloads them. Issue was pirate bay doesn't allow searchable rss feeds. So long short short, this is what I wanted to feed into flexget; searchable feeds from pirate bay in rss format.

so my flexget yml config is :
Spoiler: show

Code: Select all

templates:
  tv:
    verify_ssl_certificates: no
    download: /shares/MediaServer/TorrentDownloads/_TV/{{series_name}}/Season {{series_season}}/
    transmission:
      host: localhost
      port: 9091
      username: transmission
      password: transmission
      path: /shares/MediaServer/TorrentDownloads/_TV/{{series_name}}/Season {{series_season}}/
    email:
      from: gmailaccount@gmail.com
      to: 
        - blah@blah.com
      smtp_host: smtp.gmail.com
      smtp_port: 587
      smtp_username: gmailaccount@gmail.com
      smtp_password: password
      smtp_tls: yes
      template: html
    series:
      HDTV|480p:
        - Rookie Blue
        - Greys Anatomy
        - mythbusters
        - Silicon Valley
      720p:
        - Crossbones
        - Marvels Agents of S H I E L D
        - Game of Thrones

tasks:
  TV Series HDTV:
    inputs:
      # 720p HDTV searches : 7 = most seeds, 99 = most recent /208 == pirate bay search 720p
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/208&searchname=Crossbones
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/208&searchname=Marvels+Agents+of+S+H+I+E+L+D
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/208&searchname=Game+of+Thrones  
      # 480p searches : 7 most seeds, 99 = most recent /205 == pirate bay search normal
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/205&searchname=mythbusters
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/205&searchname=Rookie+Blue
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/205&searchname=Greys+Anatomy
      - rss: http://192.168.0.14/Webtriggers/pirate-bay-rss-scraper.cgi?maxpages=2&searchattrib=7/205&searchname=Silicon+Valley
      # ******* Generic RSS Feeds *******
      - rss: http://ezrss.it/feed/      
      # most recent pirate bay search normal
      - rss: http://rss.thepiratebay.se/205
      # most recent pirate bay search 720p
      - rss: http://rss.thepiratebay.se/208        
    template: tv
and now the interesting part:

My pirate bay html scraper is written in Bash. You may well laugh, but it appears to work quite well :D
No fancy python HTML doc loader/parser, just dodgy regular expressions and dubious sed search and replace :D

In learning to write this script I learnt few new tricks in Bash, like <<<"$var" is my new best friend.
So in the event that this may be of use to someone else ...
Spoiler: show
pirate-bay-rss-scraper.cgi

Code: Select all

#!/bin/bash
IFS=$'\n'

cat <<EOT
Content-Type:text/xml; charset=utf-8

EOT

# $1 name in query string
# $2 default value if null 
function querystring_param
{
   p=$(echo "$QUERY_STRING" | grep -oP "${1}=([^&]*)"   | sed "s/${1}=//g")
   if [[ "$p" ]]; then
       echo -n $p
   else
       echo -n ${2}
   fi
}
 
# QUERY_STRING="searchname=Crossbones&maxpages=2&searchattrib=99/208"

searchName=$(querystring_param   "searchname"   "Crossbones")
maxPageNo=$(querystring_param    "maxpages"     "1")
searchAttrib=$(querystring_param "searchattrib" "99/208")

#echo s : $searchName
#echo p : $maxPageNo
#echo g : $searchAttrib
#exit

##### Load up the search pages ####
pageidx=0
magnetsNames=()
magnets=()
while true; do
   uri="/search/${searchName}/${pageidx}/${searchAttrib}"
   regexpuri="/search/${searchName}/$((pageidx+1))/${searchAttrib}"
   url="https://thepiratebay.se$uri"
   
   # echo loading page $((pageidx+1)) : $url
   
   htmloutput=$(wget -qO- "$url")
   # htmlhashs[$pageidx]=$(md5sum <<<"${htmlpages[$pageidx]}" | awk  '{print $1}')
   # echo page hash : ${htmlhashs[$pageidx]}
   # (while read i; do echo "$i"; done <<<"${htmlpages[$pageidx]}") 

   htmloutput=$(wget -qO- "$url")
   
   idx=0
   for m in $(grep -oP "class=\"detLink\".*title=\"(.*)\"" <<<"$htmloutput" | grep -oP "title=\".*\"" | grep -oP "\".*\"" | sed 's/"//g'  | sed 's/Details for//g'); do
       magnetsNames+=($m)        
       # echo Line $idx : ${magnetsNames[$idx]}
       ((idx++))
   done
   
   idx=0
   for m in $(grep -oP  'href="magnet[a-zA-Z0-9!@#$%^&*()_+\-=\[\]{};:\\|,.<>\/?'']*"' <<<"$htmloutput" | grep -oP '"magnet[a-zA-Z0-9!@#$%^&*()_+\-=\[\]{};:\\|,.<>\/?'']*"' | sed 's/"//g'); do
       magnets+=($m)        
       # echo Line $idx : ${magnets[$idx]}
       ((idx++))
   done

   # cat <<<"${htmlpages[$pageidx]}" > html.$pageidx
   
   islastpage=$(grep -Fc $regexpuri <<<"$htmloutput")
   if ((islastpage <= 0)); then 
       # echo last page $((pageidx+1))
       break;
   elif ((pageidx+1 >= maxPageNo)); then
       # echo max pages $((pageidx+1))
       break;
   fi 
   ((pageidx++))
done

########### Generate RSS XML for flexget ######### 
cat <<EOT
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE torrent PUBLIC "-//bitTorrent//DTD torrent 0.1//EN" "http://xmlns.ezrss.it/0.1/dtd/">
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Pirate Bay - Search Scraper</title>
    <link></link>
    <description>scrapped search torrents</description>
    <language>en</language>
    <pubDate>$(date)</pubDate>
    <lastBuildDate>$(date)</lastBuildDate>
    <docs></docs>
    <generator>Bash RSS Generator 0.2</generator>
EOT

idx=0
for mname in "${magnetsNames[@]}"; do
    rss_maglink=$(echo ${magnets[$idx]} | sed 's/&/&/g')    
    cat<<EOT
    <item>
        <title><![CDATA[${mname}]]></title>
        <link>${rss_maglink}</link>
        <torrent xmlns="http://xmlns.ezrss.it/0.1/">
            <magnetURI><![CDATA[${rss_maglink}]]></magnetURI>
        </torrent>
    </item>
EOT
    
   ((idx++))
done        

cat <<EOT
</channel>
</rss>
EOT
User avatar
random_dave
Baaa!
Baaa!
Posts: 255
Joined: Fri Sep 19, 2008 6:37 am 0
XBL Gamertag: lanki of badger
PSN: random_dave
Location: Sheffield

Re: Show us yer programming projects!

Post by random_dave »

Well after far too long being lazy about it, I finally got my mock Game & Watch game (James & Watch) playable enough on the Linux build (on a pi) to take to Revival Retro and run a little high score competition on the Retrogaming Roundup booth.
Image

I had wanted to take a Dreamcast build, but I had some issues that still needed solving with it, and the final week leading up to the event i decided was best spent actually drawing all the sprites rather than fixing the Dreamcast and having it just using the placeholder assets.

I have since managed to tidy up the Dreamcast build and get that working, and then a couple of days ago set up a psp toolchain and fired it onto there too.
Image

Next up, I have some more playable games in pre-production with a friend, but in the meantime I shall be porting Retrogaming Roundups Atari 2600 game CGE Adventures to SDL. I had originally been making a self-boot version of Dreamcast Stella that autoloaded the rom, but Stella on the Dreamcast (and PSP amongst others) does not support the bank switching in the game. I had a vague idea that I could rebuild it in SDL, and then it’s portable to many other platforms, so whilst at Revival and manning the booth I had myself a little game jam and got that underway.

Then one day last week when i was bored at work I started looking again at Gameboy programming, as I had wanted to do that for years, but never had the courage with C, and within an hour or so had a redimentary maze and an animated man walking around, that I guess could form the start of a Gameboy port of CGE Adventures
Image
User avatar
sdetoni
Baaaaa!
Baaaaa!
Posts: 1368
Joined: Tue Jun 18, 2002 4:14 am 0
Location: New Sheepland

Re: Show us yer programming projects!

Post by sdetoni »

Cool retro Sim, maybe a phone or tablet version would be more suitable?
User avatar
gumboot
Baaaaaaa!
Baaaaaaa!
Posts: 7652
Joined: Sun Aug 26, 2007 3:42 am 0
Location: trumpstain!

Re: Show us yer programming projects!

Post by gumboot »

I was thinking about those things the other day. They had decent battery life, and weren't some solar-powered? We'll need those when the apocalypse comes.
User avatar
nyarla
Baaaaaa!
Baaaaaa!
Posts: 2820
Joined: Tue Jan 14, 2003 1:53 pm 0
Location: i said kiss me you're beautiful these are truly the last days
Contact:

Re: Show us yer programming projects!

Post by nyarla »

after a couple months of SLUMP, i'm back on the forget-me-not vita horse and it's going well.. been getting a little bit done every night. tonight i started trying to make an aquatic-feeling zone.. here's a little video http://vine.co/v/OuQLqZY6amp

(planning on having different areas in it...my aim is to give them the vague feeling of different kinds of environments, while remaining quite abstract - eg a foresty area should have lots of green and brown, with a feeling that you're moving through thick vine/leaf/overgrowth... but NOT have actual tilesets of trees..)
User avatar
t0ne
Baaaaaa!
Baaaaaa!
Posts: 3134
Joined: Wed Sep 11, 2002 8:48 am 0
Location: Bristol

Re: Show us yer programming projects!

Post by t0ne »

Looking good dude :)
User avatar
failrate
Baaaaaa!
Baaaaaa!
Posts: 2354
Joined: Sun May 23, 2004 6:54 am 0
Location: Sandy Eggo
Contact:

Re: Show us yer programming projects!

Post by failrate »

@Nyarlu, glorious!
User avatar
super charlie
Baaaaa!
Baaaaa!
Posts: 1809
Joined: Wed Mar 31, 2004 7:53 pm 0
Location: Ipswich, suffolk
Contact:

Re: Show us yer programming projects!

Post by super charlie »

Looking good, nyarlu!

Got my latest running on linux, though youtube is insisting it's choppy looking with off colours.




Cheers
Charlie
Visit my website here to have a look at my game.
User avatar
nyarla
Baaaaaa!
Baaaaaa!
Posts: 2820
Joined: Tue Jan 14, 2003 1:53 pm 0
Location: i said kiss me you're beautiful these are truly the last days
Contact:

Re: Show us yer programming projects!

Post by nyarla »

FMN still going well but i'm taking a break and picked up this old unfinished iOS game of mine again... having lots of fun making whatever this is

Post Reply