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 - shrear

Pages: 1 2 [3] 4 5 ... 14
31
[DE] Off-Topic / Re: Taschenrechner, Hilfe ;D
« on: September 10, 2011, 11:25:38 am »
Zur zeit, kann man auf dem CX nur in lua geschriebene Programme laufen lassen. Da die Betriebssysteme 3.x (3.0 is das niedrigste für CX)  noch nicht für C oder asm geöffnet wurden (sprich noch nicht gehackt ;) )
lua ist eine eingebaute Scriptsprache, die man im Gegensatz zu basic nicht direkt auf dem Rechner schreiben kann, dafür ist sie wesentlich leistungsstärker. (außerdem hat TI die Existenz von lua in ihren Betriebssystemen nicht gerade an die große Glocke gehängt.)

Allerdings kommt lua trotz allem nicht an asm/C heran, daher wirst du keine "sehr" komplexen Programme/Spiele, die auf dem CX laufen, finden.

ich habe unterschiedliche Sachen von OS,ndless und so eine Art Emulator gelesen,
OS ->vermutlich das Betriebssystem, hier kommt es auf die Version an was du für Programme benutzen kannst,
         aber auf dem CX hast du leider nur 3.x zur Auswahl.

ndless -> ein Dokument das einen Systemfehler zunutze macht um das Betriebssystem so zu verändern das man Programme in C/asm darauf laufen lassen kann.
              Bis jetzt gibt es keine version für Betriebssystem > 2.1.

Emulator -> du meinst vermutlich gbc4nspire, das ist ein Programm das den GameboyColor auf dem Nspire emuliert,
                  da es in asm geschrieben ist kannst du es nicht auf dem CX benutzen. Und um etwas Ähnliches in lua zu coden
                  bräuchte es Chuck Norris...

Fazit: auf dem Nspire CX sind leider zur Zeit nur "kleine Spiele" möglich.

32
Calculator C / Re: Nspire: Keypad Input
« on: September 10, 2011, 05:44:26 am »
I don't understand your code; specifically, I don't get block_value, VALUE_A, and VALUE_B.
As said it was fast written down... I thought it still comprehensible, seems not to be the case :(
Ok I explain it in words:

You have a "global"(it is declared in main and passed by pointer) value "block_value" which causes key_presses to be ignored
if its value is to high ( higher than "VALUE_A", who I didn't want to give a specific value, maybe that's where the confusion comes from.)

"block_value" is incremented each time a key is pressed and not ignored. (in fact, with a bit more code you could assign different "increment" values to different keys.)
Now you can decrement ( or increment) "block_value" outside the "key" function, either always in the main loop or if certain other conditions are meet.

Basically this method, or something similar gives you a fine grained control (as may be needed in games where there can be a lot of factors) if a key results in an action or not.


I wonder right now if my english is more understandable...lol.

In case now passed seconds is the single factor, there is a Clock in the nspire.

Code: [Select]
int key_pressed(t_key is_pressed)
{

if ( isKeyPressed(is_pressed) )
{
unsigned time_start = *(volatile unsigned*)0x90090000 ; //get the time when key is first pressed down
while ( *(volatile unsigned*)0x90090000 < time_start+SECONDS_TO_WAIT && isKeyPressed(is_pressed) )  //compare additionally to the current time
{
//loop to prevent more than one reaction per key-press or per "SECONDS_TO_WAIT" seconds.
}
return 1 ;
}
else
return 0 ;

}
I hope this code is understandable ;)

33
Calculator C / Re: Nspire: Keypad Input
« on: September 08, 2011, 12:36:29 pm »
I really like your solution
That is a very good solution
Thanks  :)

the only problem I see with it is that it holds up the whole program while the key is held down which may not be desirable in some situations.
I can imagine that this will be problematic in games etc. but for menus or typing text I haven't yet found a better solution. (or none I think better)
For games I think you could do like the following:
(this is just an idea I have right now, never tested it)
Code: [Select]
int (key_pressed(t_key is_pressed, int* block_value)
{

    if ( *block_value < VALUE_A && isKeyPressed(is_pressed) )
         {
           *block_value += VALUE_B ;
           return 1 ;
         }
   return 0 ;
}

int main()
{

     int block_value = 0 ;
     while( SOMETHING ) //main loop
     {
            if ( key_pressed(KEY_NSPIRE_WHATEVER, &block_value)
            {
                   //do what you want
            }
             //etc.
            if ( block_value > 0 )
                   block_value -= VALUE_C ; //or any other way to reduce "block_value", can probably done in a more controlled fashion like it gets updated when an action finishes or so...
      }
      return 0 ;
}
What do you think of this?

34
Minecraft Discussion / Re: I set up the minecraft server
« on: September 07, 2011, 01:56:16 pm »
Are you doing maintenance? or did I crash the server by shooting a creeper when I should be dead?

35
Calculator C / Re: Nspire: Keypad Input
« on: September 07, 2011, 12:05:07 pm »
well this is how I do it in nwriter

Code: [Select]
int key_pressed(t_key is_pressed)
{

    if ( isKeyPressed(is_pressed) )
    {
        while ( isKeyPressed(is_pressed)
        {
     //loop to prevent more than one reaction per key-press
}
return 1 ;
    }
    return 0 ;

}
It ensures that there are as many "reactions" as key-presses, drawback is that you can't "hold" a key.

36
Minecraft Discussion / Re: I set up the minecraft server
« on: August 30, 2011, 08:19:14 am »
so far everything seems to work :)

37
Other Calc-Related Projects and Ideas / Re: TILP: beta-testing...
« on: August 29, 2011, 09:36:44 am »
Avira gives also now a false positive
"TR/Siscos.dgt" <- whatever that means...
(to the credit of the AV, it's easy to add exception.)

Other thing, is it possible to prevent the console window from opening?
Because I always confuse it in the toolbar with Msys (icon is the same),
and that's kind of annoying.

38
Calculator C / Re: ARM9 compilation?
« on: August 26, 2011, 03:35:32 pm »
My first necropost I think ;)

Well I tried also to build for arm926ej-s...
and it works fine, seems as if the current release of Yagarto (29.04.2011) hasn't this problem any-more.
As of now I build ndless itself and a few smaller programs successfully ( as in no error at compile or runtime ).
Can someone confirm that it works? (To be sure I didn't mess up somewhere  :P )

39
Calculator C / Re: Ndless Program Puts Nspire into Load
« on: August 21, 2011, 02:09:41 pm »
to save battery you could try idle()
it slows the processor down until an interrupt ( a pressed key par example ) happens

40
Other Calc-Related Projects and Ideas / Re: TILP: beta-testing...
« on: August 20, 2011, 03:41:13 pm »
Quote
Unable to execute file:
C:\Users\olivier\AppData\Local\Temp\is-3PC28.tmp\gtk-2.12.9-win32-2.exe

CreateProcess failed; code 740.
The requested operation requires elevation.
Runing the gtk installer manually from temp fixes that. It seems that the administrator "right" isn't passed on by the Tilp installer.

Else it seems to work as it should.

btw I'm on w7 x64

41
TI-Nspire / Re: notepad for the nspire
« on: August 16, 2011, 10:41:04 am »
Those who watched the video probably saw that there was a serious bug in the menu :-[
Well it's fixed now ( at least I hope so... ), you can download the fixed version 5.1 here.

42
TI-Nspire / Re: notepad for the nspire
« on: August 15, 2011, 07:43:34 am »
I should stop doing stuff I'm not good at <--recording
Also there are some screenshots ( You may want to download then as the quality seems to be "bad" else )
the first two are the readme ( the style there is what will be added for the next release )
the last two are a c and a lua file.


As you've seen the menu seems to be not exactly bug free :(


43
TI-Nspire / Re: notepad for the nspire
« on: August 11, 2011, 02:44:28 pm »
As announced, here is a version with  :hyper: syntax highlighting :hyper:
Currently lua and C syntax "rules" ( does one say that so? ) are provided.

you can download v0.5 here or have a look on the source at NspForge

As usual, any feedback and bug reports are welcome :) .

44
TI-Nspire / Re: notepad for the nspire
« on: August 07, 2011, 03:29:07 pm »
syntax highlighting works :), now but I need just another few hours to polish it up for release.

45
[DE] Off-Topic / Re: Wer ist ein Deutscher (oder kann deutsch sprechen)?
« on: August 07, 2011, 12:17:29 pm »
"hässlich"?
Welches Theme benutzt du denn?

Pages: 1 2 [3] 4 5 ... 14