Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Show Topics - Tiwaking!

Pages: 1 [2]
26
TV, Movies & Music / I give it a year - Best movie 2013
« on: March 09, 2013, 11:53:06 pm »
I smiled all the way through this movie
You should all go see it

27
Technology & Hardware / Tiwas Tarot
« on: February 26, 2013, 02:14:05 am »
Here is a Tarot reading program I created inspired from this site:
http://houseof3d.com/pete/applets/tarot/tarot.html

It uses the Celtic Cross layout, but being too lazy to actually put the graphics and animation in properly, I just went for the quick and dirty task list and cards drawn.

You can give it a try here:
http://tiwaking.hostzi.com/tiwatarot/tiwatarot.html

You are meant to ask it a single query from the following list:
Love, Career, Health, Family, General, Money, Spiritual, Travel, Computer

Celtic Cross Layout

For more information about Tarot, you can visit this site:
Learning the Tarot

28
General Chat / Website - Play This Thing!
« on: February 12, 2013, 10:44:06 pm »
Play This Thing is a Website which has games on it. Thousands of games. Games of every shape and type: Video Games, Android Games, Apple Store Games, Table Top Role Playing Games, Interactive Move Games, Card Games, Dice Games, Pen and Paper Games and much much more!
http://playthisthing.com

The reason I am mentioning it is because I ran into an absolutely fantastic game. Two fantastic games actually:

Kenshi
http://www.indiedb.com/games/kenshi/downloads/kenshi-0296

Oriental Style free roaming desert adventure. Nice and complicated mechanics and the only thing that would make this alpha great would be music (the game is played in silence).

Also: WTF
http://www.aoedipus.net/dist/wtfloader.html


 2D side scrolling World of Warcraft with the most subversive dialogue since Kingdom of Loathing.

29
Technology & Hardware / Tiwas Twisted Teaser
« on: February 08, 2013, 12:10:23 pm »
http://tiwaking.hostzi.com/tiwasteaser/tiwasteaser.html
A very simple game
You place one of three colour blocks: Red, Blue, Green.
Each block influences the colour of the surrounding blocks.
You can play music but I advise you do not.
You can play on Insane Difficulty but I advise you do not.

Match your grid with the Solution Grid in shown in the bottom panel.

Have fun!

30
Technology & Hardware / One Game A Month
« on: February 07, 2013, 02:08:21 am »
One Game A Month is exactly what it says on the tin: A challenge to create one video game every month. And, as crazy as it sounds, there are surprising number of people trying to do so! With 1060 Games Released In January 2013!
http://www.onegameamonth.com/
Quote

Earn XP for doing what you love: making games!
Your quest is to try to create one new game each month. Sounds crazy but it CAN be done: 1088 games and counting! Join us. Level up your gamedev skills, earn XP and achievements, and build your portfolio. Oh, and it's fun, too.

Please only post games that are fully playable with a beginning, middle and end. No empty placeholders. Wait to submit until you're actually done the project. After submitting, you can keep working on it if you like, but once it is listed here it should be close to complete so that people who click it get an actual game to play.


One such game is the superb - Puzzle Monsters, a mix of Bejeweled, Puzzle Bobble, and Pokemon
http://www.superfundungeonrun.com/PuzzleMonsters/


So if you like playing new games you should give these a try. If you like making games, then this might be a good incentive to try making one game a month.

31
TV, Movies & Music / Django Unchained
« on: January 27, 2013, 02:46:18 am »
Score: I dunno/10

Django Unchained is an oddly compelling, but ridiculously long movie about a freed slave who becomes a bounty hunter and tries to find his slave wife.

It is basically a western with slavery.

Pros:
Quite funny in parts
Ultra violent - spaghetti western, woop!
Has some surprising historical accuracies (Leonardo Di Caprio basically stating, verbatim, the 1850 American Psychology Manual about the inferiority of black people)
Lovable Characters

Cons:
Really long
Ultra violent - it practically turns into Scarface at one point, which just seems so random
Weird music - The music changes to all sorts of weird genres at different times

Actors
Jamie Foxx
Leonardo di Caprio (as a bad guy)
Samuel L Jackson (as a bad guy as well)

32
General Chat / Zero-K
« on: January 21, 2013, 11:22:52 am »
While searching for real time strategy why is left click select right click action so good I ran into this surprisingly interesting (from a Game Development point of view) game

Quote
Zero-K is an open source RTS using the Spring engine. It aims to provide a dynamic massively multiplayer metagame built around a highly enjoyable, imaginative RTS core, as well as a compelling single-player experience.

http://zero-k.info/
http://en.wikipedia.org/wiki/Zero-K
Quote from: Wikipedia
Zero-K (ZK; formerly known as Complete Annihilation and CA) is a free multi-platform open source real-time strategy computer game. Initially based on content from Total Annihilation on the open source Spring Engine, it was forked and all proprietary content replaced, and evolved into a completely new game with unique features.

The reason I find it interesting is because of this:
http://code.google.com/p/zero-k/
Quote
Zero-K - Project Cost Include     Avg. Salary $/year
                        Project Markup & Code   $55000/year
Codebase          Effort (est.)
643,550 Lines    173 Person Years

Estimated Cost
$9,528,821

Updated Jan 20, 2013

It has 8 developers, 9 retired developers, and 46+ contributors.

For a publisher which is based around two people, that is a rather large workforce.

The game itself is quite good too.
You can download the game from here: http://zero-k.info/Wiki/Download

33
Technology & Hardware / Java Mah Jong
« on: December 14, 2012, 10:45:11 pm »
Having recently acquired a Mah Jong set I have been playing Mah Jong recently and found scoring hands to be quite a chore, especially if you are bad at math like myself.

Here is a simple program that will score hands in Mah Jong. It wont score special hands properly though since they are limit/half limit hands anyways.
Spoiler :
edit: I have changed the code to add action listeners to all the boxes and combo boxes. Having to press "calculate score" all the time is really annoying on a laptop
Code: [Select]
//Fri Dec 14 21:21:25 NZDT 2012
//Sat Dec 15 08:12:52 NZDT 2012 - Added action listener to everything
/*Below is the input used to generate this code
JPanel panel
*/
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.*;
import java.awt.*;
import javax.swing.event.*;
import java.awt.event.*;
import java.util.Scanner;
import java.util.ArrayList;
import java.text.NumberFormat;
import javax.swing.border.Border;
import java.util.*;
import java.io.*;
public class MahJongScorePanel extends JPanel implements ActionListener,KeyListener{
protected final String[]types={"Suit","Honour"};
protected final JCheckBox[]boxes=new JCheckBox[4];
protected final JFormattedTextField txtScore=new JFormattedTextField(NumberFormat.getIntegerInstance());
protected final JButton btnScore=new JButton("Calculate Score");
protected final Border blackline=BorderFactory.createLineBorder(Color.black);
protected final JFormattedTextField txtMisc=new JFormattedTextField(NumberFormat.getIntegerInstance());
protected final String[]sets={"Pung","Kong","Run"};
protected final JPanel[]setPanels=new JPanel[4];
protected final JComboBox[]boxSets=new JComboBox[setPanels.length];
protected final JComboBox[]boxTypes=new JComboBox[setPanels.length];
protected final JCheckBox boxMahJong=new JCheckBox("Mah Jong",true);
protected final JCheckBox boxPurity=new JCheckBox("Purity",false);
protected final JCheckBox boxOwnWind=new JCheckBox("Own Wind",false);
protected final JCheckBox boxRoundWind=new JCheckBox("Round Wind",false);
public static final String[]FILE_DIRECTORIES={"dot/","char/","bamb/","drag/","wind/"};
public static final LinkedHashSet<String>SPECIAL_TILES=new LinkedHashSet<String>(Arrays.asList(new String[]{
&quot;Plum&quot;,&quot;Orchid&quot;,&quot;Chrysanthemum&quot;,&quot;Bamboo&quot;,
&quot;Winter&quot;,&quot;Summer&quot;,&quot;Autumn&quot;,&quot;Spring&quot;}));
public MahJongScorePanel(){
setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
setSize(800,300);
for(int i=0;i<setPanels.length;i++){
JPanel panel=new JPanel();
panel.setLayout(new BoxLayout(panel,BoxLayout.X_AXIS));
panel.add(new JLabel(&quot;Set Type (3/4/Run)&quot;));
boxSets[i]=new JComboBox(sets);
boxSets[i].addActionListener(this);
panel.add(boxSets[i]);
boxes[i]=new JCheckBox(&quot;Concealed&quot;,false);
boxes[i].addActionListener(this);
boxes[i].setBorder(blackline);
panel.add(boxes[i]);
JLabel lbl=new JLabel(&quot;Suit or Honours&quot;);
lbl.setBorder(blackline);
panel.add(lbl);
boxTypes[i]=new JComboBox(types);
boxTypes[i].addActionListener(this);
panel.add(boxTypes[i]);
setPanels[i]=panel;
add(setPanels[i]);
}//4
JPanel pnl1=getPanel(true);
btnScore.addActionListener(this);
pnl1.add(btnScore);
pnl1.add(boxMahJong);
pnl1.add(new JLabel(&quot;Extra Points&quot;));
txtMisc.setValue(0);
boxPurity.addActionListener(this);
boxOwnWind.addActionListener(this);
boxRoundWind.addActionListener(this);
pnl1.add(txtMisc);
pnl1.add(boxPurity);
pnl1.add(boxOwnWind);
pnl1.add(boxRoundWind);
add(pnl1);
JPanel tmpPnl=new JPanel();
tmpPnl.setLayout(new BoxLayout(tmpPnl,BoxLayout.X_AXIS));
tmpPnl.add(new JLabel(&quot;Total Score:&quot;));
txtScore.setEditable(false);
tmpPnl.add(txtScore);
add(tmpPnl);
btnScore();
}//c
protected JPanel getPanel(boolean layout){
JPanel tmpPnl=new JPanel();
if(layout)tmpPnl.setLayout(new BoxLayout(tmpPnl,BoxLayout.X_AXIS));
else tmpPnl.setLayout(new BoxLayout(tmpPnl,BoxLayout.Y_AXIS));
return tmpPnl;
}
public void actionPerformed(ActionEvent ae){
// if(ae.getSource().equals(btnScore))btnScore();
btnScore();
}//actionPerformed
protected void btnScore(){
int score=0;
try{
score+=(Long)txtMisc.getValue();
}catch(Exception zerostart){}
int doubles=0;
if(boxMahJong.isSelected())score+=20;
for(int i=0;i<setPanels.length;i++){
int runScore=0;
if(boxSets[i].getSelectedIndex()==0)runScore=2;
if(boxSets[i].getSelectedIndex()==1)runScore=4;
if(boxTypes[i].getSelectedIndex()==1){
runScore*=2;
doubles++;
}//fi
if(boxes[i].isSelected())runScore*=2;
score+=runScore;
}//4 panels
if(boxPurity.isSelected())doubles++;
if(boxOwnWind.isSelected())doubles++;
if(boxRoundWind.isSelected())doubles++;
for(int i=0;i<doubles;i++){
score*=2;
}
txtScore.setValue(score);
}//btnScore
public void keyPressed(KeyEvent e){
int key=e.getKeyCode();
if(key == KeyEvent.VK_LEFT || key == KeyEvent.VK_NUMPAD4){

}//if you press left
if (key == KeyEvent.VK_RIGHT || key == KeyEvent.VK_NUMPAD6){

}//right

if(key == KeyEvent.VK_UP || key == KeyEvent.VK_NUMPAD8){

}//if you press up
if(key == KeyEvent.VK_DOWN || key == KeyEvent.VK_NUMPAD2){

}//down
}
public void keyReleased(KeyEvent e){

}
public void keyTyped(KeyEvent e){
if(e.getKeyChar() == 27){
System.exit(0);
}//esc
if(e.getKeyChar() == KeyEvent.VK_ENTER){

}
}//me keys
public static void main(String[]args){
JFrame frame=new JFrame(&quot;Mah Jong Score Panel by Tiwa Pene Fri Dec 14 22:32:42 NZDT 2012&quot;);
MahJongScorePanel scorepanel=new MahJongScorePanel();
frame.add(scorepanel);
frame.setSize(scorepanel.getSize());
frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
frame.setVisible(true);
}//main
}//class
The only actual java mah jong game (not that idiot solitaire version) I have found that is any good is this one:
edit: Whoops, messed up the link. Its missing a quotation mark
Mythosware Mah-Jong v1.0
------------------------

(C) Andrew Lawrenson 2010
http://www.mythosware.co.uk

Unfortunately the resolution to play it is something like 1400xsomething stupid which does nothing for the game.

p.s I have been working on Java Mah Jong since finding the previous one to be an unsuitable resolution, hence the screenshot from The Monopoly Thread which is a modified Mah Jong layout.

34
General Chat / Google Suspicious Sign In
« on: November 20, 2012, 10:32:09 pm »
Hi everybody!

My flatmate just got one of these messages from google.

We thought it might have been his cellphone signing in, but it turns out to be from an attack site in China.


I have never had this happen to me yet and was wondering: Had anyone else had had this happen?

35
TV, Movies & Music / John Carter - Biggest Flop Ever?
« on: March 24, 2012, 11:12:30 am »
http://www.economist.com/blogs/prospero/2012/03/disneys-john-carter?fsrc=scn/gp/wl/bl/thebiggestflopever
John Carter flop to cost Walt Disney $200m
http://www.bbc.co.uk/news/business-17442200


Having recently rewatched Waterworld (the previously biggest flop ever) I was suprised to stumble on this beauty of an (allegedly) terrible movie.

Unfortunately it is 2 hours 15 minutes and it is meant to be all bad. If it makes it to NZ I might go see it for the infamy alone.

36
Console / Xbox Kinect
« on: November 18, 2010, 10:02:50 pm »
Okay for starters: I dont like this whole idea of full body motion controller malarky. Its gimmicky. Its stupid. Its exhausting.

This afternoon I got my first and probably last ever go at using the Xbox Kinect. S.I.T purchased a device and it is to be used for testing purposes.

The setup was fairly painless. Voice recognition is required for some reason. Also there is a 'pause' posture where if you perform said posture, the game 'pauses'. This can get quite annoying when you're stretching as it misreads it as a pause.

BASICALLY if you've used eyetoy then you've used this. Its just a minor upgrade. The only positive thing I have to say about the kinect is: It has some amazing motion capture technology which I would love, LOVE to play around with. Unfortunately its facial expression detection isnt as good as the playstation move.

Here is a video of me playing Kinetic Adventures: River Race. It was pretty immersive using the chair. The only reason I am playing is because the detector refused to acknowledge the presence of the guy standing in front of it and somehow picked up my skeleton when I was sitting behind him.

There are more videos (you can even see another guy filming me playing in this video) and I'll try to put them online.




One of the funniest things is at the end of a game it takes pictures of 'highlights', very similar to any eyetoy game. One of the guys playing kept removing his clothes so the snapshots looked like a very energetic strip show.

p.s I will also not get out of a chair for a game which does not involve murdering something.

37
Technology & Hardware / Java Code Repository
« on: March 28, 2010, 08:05:57 pm »
This thread is where you can find or post useful Java information, code snippets, tips or tricks.

I'll start with an amazingly useful tool:

Stephen G Wares incredible Sound to Class tool which turns a sound file to an independent, thread based .java file!
You should also check out the Image to Class file which is just below the previous link


My own contributions to this thread are:

Working with JApplets: Your guide to frustration ville

Applets and JApplets are horrible. They hate you. They laugh at your efforts to tame them and it just isnt worth bothering to use them


HOWEVER: If you are stubborn like me, and want a quick, easily distributed, NON-INTRUSIVE, SECURE and platform-independent method of getting your program out and about then they are a Godsend. A God which hates you and considers your efforts to spread your program to be pitiful at best, but a godsend nonetheless.


For starters: If you need file WRITE access, forget it

You will need to use CGI scripts to do so. If the server hosting your Applet has disabled cgi, forget it.


If you need file READ access, prepare for pain

Despite everything you read on the internets, you CAN initialise a FILE() object. HOWEVER:

You cannot read it and
You cannot write to it

This is akin to buying a dirty magazine and finding there is no cover art and the pages are solidly stuck together with some unidentifiable substance. It is about as disappointing too


What you need to do is to CHANGE your STRING file/folder path name into an INPUTSTREAM object BASED on the pathname. This is done as follows (spoilered to prevent cluttered thread):

Code: [Select]
BufferedInputStream inputStream = new BufferedInputStream(
this.getClass().getResourceAsStream(path));


Note that the getResourceAsStream() method returns a BufferedInputStream type

Now here is the fun bit: If you need a STRING from the file (like a filename or foldername)

Code: [Select]
public void convertStreamToString(InputStream is,String path){
    if (is != null) {
        StringBuilder sb = new StringBuilder();
        String line;
        ArrayListarray=new ArrayList();
            try{
            BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"));
                while ((line = reader.readLine()) != null) {
                    sb.append(line).append("\n");
                }//while line=reader.ReadLine
                is.close();
            }catch(IOException in){
                System.err.println(in.toString(),"Error in Convert Stream To String!");
            }//catch
        }//if is != null
        System.out.print(sb.toString());
}//method

Simple? Well. Not really. If you need to get a list of all the FILES in a directory....well. That can be a story for another day


You can also retrieve IMAGES via the InputStream method as well
Code: [Select]
private ImageIcon loadImage(String path) {
    int MAX_IMAGE_SIZE = 240000;  //Change this to the size of
                                 //your biggest image, in bytes.
    int count=0;
    BufferedInputStream imgStream = new BufferedInputStream(
       this.getClass().getResourceAsStream(path));
            if (imgStream != null) {
                byte buf[] = new byte[MAX_IMAGE_SIZE];
                        try {
                            count = imgStream.read(buf);
                            imgStream.close();
                        } catch (java.io.IOException ioe) {
                        System.err.println("Couldn't read stream from file: " + path);
                        return null;
                        }
                if (count <= 0) {
                        System.err.println("Empty file: " + path);
                        return null;
                }
                return new ImageIcon(Toolkit.getDefaultToolkit().createImage(buf));
                } else {
                        System.err.println("Couldn't find file: " + path);
                        return null;
                }//clse
}//method

In summation: Never forget that nextInt() will leave an empty string behind!

Edit: Edited with code tags and proper formatting

38
General Chat / Kiwi Terms
« on: April 16, 2009, 03:13:42 pm »
Got this sheet in one of my classes which was good fun. Still unsure of what a Micky-doolan is. Never heard of some of them.

Edit: Apologies. I thought the doc would come out as an image. Converting now

39
Counter Strike / 56k dial-up modem optimization
« on: April 20, 2005, 03:45:28 pm »
Recently I've been experimenting with various Rates and cl settings. I've actually found that THIS:
cl_updaterate 1 | cl_cmdrate 1 | rate "57344" | cl_rate "3440.64" | cl_interp 0.2

Is the best and most optimal for modems. A unfortunate side-effect is an unrealistic latency in the scoreboard of 5, but I've found that server 2 still displays your REAL ping! If anyone has any VALID comments about their 56k settings please post. I really would love HawkGTF and [hrt] Ranger to change their settings. They're laggy laggy buggers.

No modem bashing allowed and also 'upgrade to adsl' is NOT a valid comment :P

Also I have my less than comprehensive guide here http://www.geocities.com/tiwaking2/css.html

Retraction: I found out that I stuffed up my RATE on monday. Instead of 5600 I put in 56000. This is why my ping has been in the 1500's lately. In any case I've managed to fix it all. cl_updaterate 1 and cl_cmdrate 1 STILL seem to work with no problems at all, but for a more enjoyable game I now set them to update 30(half my max fps) and cmdrate 20(1/3'rd my fps) respectively

Pages: 1 [2]