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

Pages: 1 ... 29 30 [31] 32 33 ... 68
451
News / Re: Secret Nspire OS popups!
« on: March 17, 2012, 05:47:46 pm »
By keeping it up I found some way to invoke Numeric Input popup and handle them as Input dialogs for Ndless.



(more info here : http://tiplanet.org/forum/viewtopic.php?f=43&p=121843#p121842)

452
Lua / Re: PCspire, run Nspire lua programs nativly on your pc
« on: March 15, 2012, 03:53:06 pm »
awesome =)

453
News / Re: Secret Nspire OS popups!
« on: March 14, 2012, 04:04:10 pm »
Since strings are hard coded in the binary, I won't say they are for upcomming OSes.
By the way, the title of the frequency manager is just the same as another popup that really deals with batteries. I would say they just copy/pasted the code and replaced some stuff to display something else.

And by the way, the "Mise à jour" ("Update" in english) buttons are only there to update popups.

454
TI-Nspire / Re: OSLauncher 3.1
« on: March 13, 2012, 08:06:21 pm »
Have a break, have a kitkat

455
News / Re: Protect your TI-Nspire startup with ZLock
« on: March 13, 2012, 04:59:06 am »
I woke up this morning bringing the solution to the problem I wasn't able to manage alpha keys.
In fact I've added them to the function that reads a character but haven't modified the condition in the function that reads the passord :D

I updated the archive :
http://tiplanet.org/forum/archives_voir.php?id=3959

456
News / Re: Protect your TI-Nspire startup with ZLock
« on: March 12, 2012, 06:52:09 pm »
Update :

Zlock update adds energy management using a fading contrast/backlight when unused.
By the way I added fadeIn/Out quite everywhere so that it is even moar epic, and increased limit to 10 digits so that it is even moar securized.



Download ZLock 1.2 now !

457
News / Re: Protect your TI-Nspire startup with ZLock
« on: March 09, 2012, 06:00:31 am »
Can somebody make a tutorial on how to install this? Do you drag the folder into My Documents/ndless/startup?
Yes, and launch it once to setup as detailed in the ReadMe.
If you want to uninstall if, as the ReadMe says, rename it to uninstall.
This can be done from Nspire Computer Software IIRC, or just remove the hidden config file : config.zlock

And if you can't, just press Esc or On (can't remember) to avoid Ndless startup launch.

458
TI-Nspire / Re: nPassword Protection
« on: March 09, 2012, 05:56:22 am »
http://ourl.ca/15214

kthxbye



edit 25 minutes later : fuuu grilled

459
Lua / Re: Ti RPG 2 for the Nspire done in Lua
« on: March 06, 2012, 05:13:46 am »
Quote
if char=="0" or char=="1" or char=="2"or char=="3"or char=="4"or char=="5"or char=="6"or char=="7"or char=="8"or char=="9" then

in python, it would just be "if char in {"1","2","3","4","5","6","7","8","9","0"}" I haven't really figured out a good way to shorten this either.

if char >= "0" and char <= "9" then

kthxbye

end

460
TI-Nspire / Re: TI-Nspire emulator
« on: March 06, 2012, 05:08:55 am »
A few things about nspire_emu as of present.
The clickpad is fine but the Touchpad is horribly mapped to the keyboard. Nearly every key I press is wrongly mapped. I suspect this has been a problem for quite a while, and it's a shame I can't really try out the touchpad.
I plan to release my personal edited versions of Levak's batch file scripts that work with v060, if that's fine.
I've got one optimized for the Linux version.
I just didn't get the time to redo them all :D

Code: [Select]
#!/bin/bash

# Répertoire absolu du fichier
RELPAT="$(dirname $0)"

function menup {
select_menup=$(zenity --list --title="Menu Principal" \
--text="Veuillez choisir un item" \
--column="select" --column=" " \
"quit" "Quitter" \
"tnc" "TI-nSpire CAS" \
"tno" "TI-nSpire" \
"tcc" "TI-nSpire CAS CX" \
"tco" "TI-nSpire CX" \
"binrun" "Fichier bin" \
"aide" "Aide" \
--hide-column="1" \
--height="300" \
--width="500");
}

function calc {
# $1 = tnc tno tcc tco
if [ "$1" = "tno" ]; then
select_menuc=$(zenity --list --title="Menu TI-nSpire" \
--text="Veuillez choisir un item" \
--column="select" --column=" " \
"return" "Retour" \
"extboot2" "Extraire le boot2" \
"rom" "Créer une ROM" \
"runb1" "Lancer une ROM sur le boot1" \
"runb2" "Lancer une ROM sur le boot2" \
"run84b1" "Lancer une ROM en mode 84+ sur le boot1" \
"run84b2" "Lancer une ROM en mode 84+ sur le boot2" \
"dump" "Dumper un classeur (Ctrl+S -- dump.xml)" \
--hide-column="1" \
--height="300" \
--width="500");
else
select_menuc=$(zenity --list --title="Menu TI-nSpire" \
--text="Veuillez choisir un item" \
--column="select" --column=" " \
"return" "Retour" \
"extboot2" "Extraire le boot2" \
"rom" "Créer une ROM" \
"runb1" "Lancer une ROM sur le boot1" \
"runb2" "Lancer une ROM sur le boot2" \
--hide-column="1" \
--height="300" \
--width="500");
fi
}


function binrun {
binfile=$(zenity --file-selection --title="Sélectionnez un fichier *.bin"  --height="30" --width="500"  --filename="$RELPAT/");
if [ "$binfile" ]; then
"$RELPAT"/nspire_emu.exe /B="$binfile"
fi
}

function extboot2 {
clear
echo "#####################################################"
echo "#           Extraire le Boot2 de boot2.img          #"
echo "#####################################################"
wine "$RELPAT"/imgdump.exe boot2.img
}

function rom {
# $1 = tnc tno tcc tco
os=$(zenity --file-selection --title="Sélectionnez un fichier *.$1" --filename="$RELPAT/");
if [ "$os" ]; then
if [ "${os##*.}" = "$1" ]; then
rom=$(zenity --file-selection --title="Enregistrer une ROM" --save --confirm-overwrite --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" != "rom" ]; then
rom="$rom.rom"
fi
if [ "$1" = "tno" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /N /PB=boot2.img /PO="$os"
elif [ "$1" = "tnc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /N /PB=boot2.img /PO="$os" /C
elif [ "$1" = "tco" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /N /PB=boot2.img /PO="$os" /X
elif [ "$1" = "tcc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /N /PB=boot2.img /PO="$os" /C /X
fi
fi
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.$1 et pas autre chose ! \n Opération annulée"
fi
fi
}

function runb1 {
# $1 = tnc tno tcc tco
rom=$(zenity --file-selection --title="Sélectionnez un fichier *.rom" --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" = "rom" ]; then
boot1=$(zenity --file-selection --title="Sélectionnez un fichier BOOT1" --filename="$RELPAT/");
if [ "$boot1" ]; then
if [ "$1" = "tno" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /1="$boot1"
elif [ "$1" = "tnc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /1="$boot1" /C
elif [ "$1" = "tco" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /1="$boot1" /X
elif [ "$1" = "tcc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /1="$boot1" /C /X
fi
fi
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.rom et pas autre chose ! \n Opération annulée"
fi
fi
}

function runb2 {
# $1 = tnc tno tcc tco
rom=$(zenity --file-selection --title="Sélectionnez un fichier *.rom" --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" = "rom" ]; then
if [ "$1" = "tno" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw
elif [ "$1" = "tnc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw /C
elif [ "$1" = "tco" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw /X
elif [ "$1" = "tcc" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw /C /X
fi
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.rom et pas autre chose ! \n Opération annulée"
fi
fi
}

function run84b1 {
rom=$(zenity --file-selection --title="Sélectionnez un fichier *.rom" --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" = "rom" ]; then
boot1=$(zenity --file-selection --title="Sélectionnez un fichier BOOT1" --filename="$RELPAT/");
if [ "$boot1" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /1="$boot1" /K
fi
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.rom et pas autre chose ! \n Opération annulée"
fi
fi
}

function run84b2 {
rom=$(zenity --file-selection --title="Sélectionnez un fichier *.rom" --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" = "rom" ]; then
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw /K
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.rom et pas autre chose ! \n Opération annulée"
fi
fi
}

function dump {
local winePath="$HOME/.wine/dosdevices/c:"
local rom=$(zenity --file-selection --title="Sélectionnez un fichier *.rom" --filename="$RELPAT/");
if [ "$rom" ]; then
if [ "${rom##*.}" = "rom" ]; then
local size=$(zenity --entry --title="Taille du classeur à dumper (octets)" --entry-text="0");
let num=$size/170
echo "k 10032AA0 +x" > "$RELPAT/commands.txt"
echo "c" >> "$RELPAT/commands.txt"
local i=0
while [ $i -le $num ]; do
# Complete tempory file names with zeros so that it's listed correclty
let local dif=${#num}-${#i}
local spaces=$(printf "%"$dif"s")
local zeros=${spaces// /0}
# Fill command list
echo "w C:\dump$zeros$i.xml r1 r2" >> "$RELPAT/commands.txt"
echo "c" >> "$RELPAT/commands.txt"
let i=$i+1
done

# Launch emulator with debug command list
"$RELPAT"/nspire_emu.exe /F="$rom" /B=boot2.img.raw /D < "$RELPAT/commands.txt"

# Concatenate final XML file using tempory files
echo -n "" > "$RELPAT/dump.xml"
for f in "$winePath/dump*"; do
cat $f >> "$RELPAT/dump.xml"
done
# rm -f "$winePath/dump"*
rm -f "$RELPAT/commands.txt"
else
zenity --error --title="Erreur" --text="Veuillez sélectionner un fichier *.rom et pas autre chose ! \n Opération annulée"
fi
fi
}

function aide {
clear
echo "#####################################################"
echo "#                      Aide                         #"
echo "#                   ----------                     ##"
echo "##    sur l'utilisation de l'emulateur en boot2    ##"
echo "#####################################################"
echo "- Recuperez le fichier de mise a jour TI (*.tnc/*.tno/*.tcc/*.tco) en le telechargeant  "
echo "  depuis le site de TI ou sur TI-bank, qui lui ressence une grande partie "
echo "  des OS ayant existes."
echo "- Copiez ce fichier dans la racine du dossier de l'emulateur."
echo "- Le renommer pour plus de simplicite (ex : 17.tnc) !"
echo "- L'assimiler a un format *.zip."
echo "- Ouvrir l'archive et en extraire 'boot2.img' et le placer dans la racine"
echo "  du dossier de l'emulateur."
echo "- Retablir l'extension du fichier de mise a jour TI (*.tnc/*.tno)."
echo "- Grace a ce fichier batch, decryptez le 'boot2.img'."
echo "- Grace a ce fichier batch, lancez l'emulation."
echo "### Pour regarder ce tutoriel en video : http://vimeo.com/8884626"
echo ""
echo "Appuyer la touche <Entrée> pour continuer..."
read touche
}

while [  "$select_menup" != "quit"  ]; do
menup
if [ "$select_menup" = "binrun" ]; then
binrun
elif [ "$select_menup" = "aide" ]; then
aide
elif [ "${select_menup:0:1}" = "t" ]; then
while [ "$select_menuc" != "return" ]; do
calc $select_menup
if [ "$select_menuc" = "extboot2" ]; then
extboot2
elif [ "$select_menuc" = "rom" ]; then
rom $select_menup
elif [ "$select_menuc" = "runb1" ]; then
runb1 $select_menup
elif [ "$select_menuc" = "runb2" ]; then
runb2 $select_menup
elif [ "$select_menuc" = "run84b1" ]; then
run84b1
elif [ "$select_menuc" = "run84b2" ]; then
run84b2
elif [ "$select_menuc" = "dump" ]; then
            dump
else break;
fi
done
select_menuc="none"
else break;
fi
done

# Credits
clear
zenity --info --title="Credits" \
--text=\
"Merci d'avoir utilisé ce shell Bash réalisé par Levak.
Un grand merci à Goplat pour son émulateur !"
clear


461
TI-Nspire / Re: Some 3D with Ndless...
« on: March 05, 2012, 05:36:37 pm »
We need a new nspire link software, a way to send files to our nspire without the fear of secretly being upgraded. Also, if your nspire's storage is full, then an os will not fit on it. Please! We need this!


TiLP spotted.

462
News / Re: OS 3.2 announced for this Spring
« on: March 02, 2012, 05:24:51 pm »
I hope the OS update does not block Ndless...

Sorry but :

463
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 27, 2012, 01:39:46 am »
Here's another potential bug (or maybe it's just me?)
When building my program in Ndless r557, the console gives me these errors:
Code: [Select]
In file included from main.c:4:0:
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/string.h: At top level:
/home/philip/lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/include/string.h:35:9: error: conflicting types for ‘strlen’
/home/philip/Downloads/ndless-r557/sdk/bin/../include/os.h:243:1: note: previous definition of ‘strlen’ was here

I find that "strlen" was defined in line 47 of syscalls.h. Is there a conflict between this and something already defined in gcc?
Yes. You shouldn't use gcc libs only if you know what you're doing, because most of syscalls are already found (not all of them sadly).
Functions like strlen, strcat, strcmp etc ... are in os.h, you don't need string.h, just try to remove the #include =)  (same for other libs)

464
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 23, 2012, 01:39:56 am »
Do I need to add the sdk/bin/ to the PATH variable in win 7? (It says do that for XP, Vista, and Linux, but just making sure)
If so, how?

Yes you have to.
"Start" > Right click on "Computer" > "Properties" > "Advanced system settings" (last item in the list at the left) > at the bottom "Environment settings" or something like this > search for "Path" (and non PATH) in the bottom list > click on Edit/Modify > add a ";" at the end, and then your path to ndless/sdk/bin

465
News / Re: Ndless v3.1 beta for OS v3.1 with TI-Nspire CX support released
« on: February 04, 2012, 04:40:17 am »
Were you using OS 3.1 before ?
I can't be sure of what I'm going to say but maybe it is a clue : when connected to the PC, the Nspire won't turn Off automaticly (true) whereas unplugged it enters standby (IIRC).

Remeber that your Nspire (any model) can is powered by USB (you can remove the batteries/accu if you wish check).

Yes, my Nspire came preloaded with OS 3.1 as I had just purchased it recently. Just to elaborate the calculator also had absolutely no problems standing by or dimming until Ndless was installed, and reverts back to having no problems when I uninstall it.

After a week or so of use in class, it still fails to standby most of the time no matter what setting I put it on; though dimming has seemed to work consistently of late.

Just reinstall OS 3.1 completly. Even if it could be Ndless, many people here saying to not have this problem, and this _could_ be an OS bug, as possible as a Ndless bug.

Pages: 1 ... 29 30 [31] 32 33 ... 68