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.


Messages - ben_g

Pages: 1 ... 26 27 [28] 29 30 ... 71
406
Computer Programming / Re: function not getting called
« on: February 20, 2013, 03:53:45 pm »
This got solved in an other forum which is specialized in java and the game engine I'm using. It turns out that there was an error, but that code that is called from GUI events doesn't print the errors in the console.

Anyway, thanks for your help.

407
Computer Programming / function not getting called
« on: February 19, 2013, 04:26:19 pm »
I have a strange problem in my current code: When I call Controls.requestKeyChange from MenuController.changeControls, it just seems to return from changeControls.

My code:

MenuController.java:
Code: [Select]
public class MenuController extends AbstractAppState implements ScreenController{
    //...
    public void changeControls(String s){
        ControlsButton1.setText("Press any button...");
        System.out.println("changeControls in MenuController called (Action: "+Controls.Action.values()[Integer.parseInt(s)]+" )");
        Controls.requestKeyChange(Controls.Action.values()[Integer.parseInt(s)], app.getInputManager(), new Runnable() {
            public void run() {
                ControlsButton1.setText(Controls.keyName);
            }
        });
    }
}

Controls.java:
Code: [Select]
public class Controls implements ActionListener{
 
    //...
    public static void requestKeyChange(Action action,InputManager im, Runnable executeWhenDone){
       
        System.out.println("requestKeyChange called (Arguments: "+action+", "+im+", "+executeWhenDone);
       
        r = executeWhenDone;
        removeControls(im);
        setupKeyNames();
       
        for(int i=0; i<keyCodes.size(); i++){
            im.addMapping(keyNames.get(i), keyboard.get(i) ? new KeyTrigger(keyCodes.get(i)) : new MouseButtonTrigger(keyCodes.get(i)));
        }
       
        System.out.println(im.toString());
       
        changingControls = true;
    }
}

Console output:
Code: [Select]
//...
changeControls in MenuController called (Action: moveUp )
BUILD SUCCESSFUL (total time: 20 seconds)

Does anyone know why this happens?

408
Miscellaneous / Re: High level languages are vexing
« on: February 18, 2013, 01:02:51 pm »
Indeed. High-level languages aren't really meant to be just as fast as asm. They are meant to make programming easier and quicker.

409
I got to level 11. It is fun in the beginning, but it quickly gets frustrating at the end when you can't beat the levels.

410
Other Calculators / Re: Calc prices on TI website... something wrong?
« on: February 13, 2013, 06:05:30 pm »
I find it strange that anyone would pay that much for an outdated 83+?
99% of the time, it's only because schools force their students to do so.

411
The Axe Parser Project / Re: Features Wishlist
« on: February 13, 2013, 05:56:36 pm »
$0C is normal mode, I think $0D is vertical mirror and $0E is horizontal mirror, but $0D and $0E might be the other way around. $0F is mirrored both horizontally and vertically or rotated 180°).
It simply works by sending those instructions to the display driver (out ($10), $0F)
But those instructions only work on calcs with the new LCD driver. That might be a reason why it wouldn't be added to AXE.

412
Humour and Jokes / Re: Weird/funny pictures thread
« on: February 10, 2013, 04:49:47 pm »
* ben_g tries

* ben_g lost

I didn't see that coming...

413
Humour and Jokes / Re: Weird/funny pictures thread
« on: February 10, 2013, 04:28:09 pm »
Found this on tumblr:

That isn't really solving it. It would just color the entire maze since every coridor is indirectly connected to the start and the end of the maze.

414
The Axe Parser Project / Re: Bug Reports
« on: February 03, 2013, 03:09:52 pm »
...and I use the ports to the right.
I don't know which port is on which side, but axe can only handle connections trough the I/O port (the round one). If you try to connect them trough the USB port (the rectangular one), axe will act like they aren't connected.

415
Also, the 84+ has 1MB flash total, and the OS uses less than 520kB, but it reserves some empty space. Maybe a patch could fix it ?
I think there is already a patch that does it (NyanMem iirc), but it only lasts untill the next garbage collection, so it can help with transferring large apps, but it won't give you any more storage.

416
Because of the way ti-boy works, compression would cause a HUGE slowdown, and it would need to rewrite flash pages very often. And as flash pages only have a limited number of rewrites, it would ruin the life of the flash memory.

417
I don't think that functionality will be added soon as it can be quite hard to see which parts of the data are sounds, and it's even harder to find and update all the pointers to the data behind the sounds.

418
Also who thinks that most OS 2.43 and 2.55 MP bugs will still be present in OS 4.0 for the Color 84+? <_<
It depends. If they have the same CPU, they'll probably have copy-pasted everything and only rewrote the drawing code.

419
Computer Usage and Setup Help / Re: Hosting server
« on: January 30, 2013, 04:02:30 pm »
...
WINE Is Not an Emulator (aka WINE) (for running the server EXE for minecraft)
...
Thi bukkit server is a normal jar file that should run on any platform. The vanilla minecraft serve can also be downloaded as jar iirc.

420
Art / Re: Some Random Sprites
« on: January 28, 2013, 02:05:40 pm »

I like this one. It looks very clean and clear.

Pages: 1 ... 26 27 [28] 29 30 ... 71