Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 04:19:18 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Version 1.7 on CAS -  (Read 1731 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
jboavida
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 04 July, 2011, 00:50:03
Date Registered: 12 December, 2010, 00:25:08
Posts: 6

Topic starter
Total Post Ratings: 0

View Profile
« on: 12 December, 2010, 00:29:44 »
0

Hello,

I have a CAS with OS version 1.7.2741. I have installed Ndless 1.7 following instructions. I got the message box "Ndless installed successfully"
But... every time I run a program that requires Ndless (like hello, hella, or imageviwer) the calculator reboots.

Anyone has the same problem ?

Thanks

Joaquim
Logged
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #1 on: 12 December, 2010, 00:34:20 »
0

Hi!  Welcome to Omnimaga! Smiley

The programs "hello" and "hella" not working is a bit strange.  The image viewer probably should not work on Ndless 1.7, as it was originally built for Ndless 1.1.  Can you try a program that specifically states it was built for Ndless 1.7 (on ticalc.org, I know Block Dude, gbc4nspire, and NESpire will definately work on Ndless 1.7).  Programs such as the raycaster will not work in that version. 

If you can't get any of these official Ndless 1.7 programs working, post again here.  I assume you have a clickpad CAS as you have OS 1.7 working, so this can't be caused by any touchpad incompatibilities.
Logged


jboavida
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 04 July, 2011, 00:50:03
Date Registered: 12 December, 2010, 00:25:08
Posts: 6

Topic starter
Total Post Ratings: 0

View Profile
« Reply #2 on: 12 December, 2010, 01:01:48 »
0

Wow! that was fast response. Thanks!

I have tested the Game boy emulator and 5 minutes later I was playing SuperMario  Grin

Everything seems to work... I d'ont know why "hello" fails...

Anyway what I really need is bmpviewer... I have the source code, What compiler should I use?
Do I need to make modifications to the source code or just recompile ?

Thanks again

Joaquim
Logged
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #3 on: 12 December, 2010, 01:03:47 »
0

You have to follow in instruction on hackspire to set up a dev. environment.  It can be a slightly difficult task. 

Here is a version that should work on OS 1.7.  I had to make some minor modifications to make this work.  When I tried to build this with the original source, the compilier said some of the functions needed to list all of the .bmp files in a directory are not defined for Ndless 1.7.  I had to modify the source and program usage to accommodate this. 

To use this program you must do this:  Create a folder "examples" on your Nspire.  Put both the document "bmpviewer.tns" and your image, that must be named "image.bmp.tns" in this folder.  Then run bmpviewer.tns to see the image.

I will try to find a better solution to this if I get a bit of free time, but this should work as a temporary solution.  Hope this helps!

* bmpviewer.tns (1.71 KB - downloaded 88 times.)
« Last Edit: 12 December, 2010, 02:43:26 by apcalc » Logged


jboavida
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 04 July, 2011, 00:50:03
Date Registered: 12 December, 2010, 00:25:08
Posts: 6

Topic starter
Total Post Ratings: 0

View Profile
« Reply #4 on: 12 December, 2010, 03:42:00 »
0

Works good. Many thanks!
Hope you don't consider an abuse, but it will be possible to change the source code so it displays the image on the current folder instead the "examples" folder? In that way I can create multiple folders and copy both viewer and image to those folders. The way you send I can only see one image.

As I said I hope you don't consider abusive.  It is a great help as is. Smiley
Respect.

Thanks
Logged
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #5 on: 12 December, 2010, 04:15:05 »
0

Nevermind!  I have it working!  w00t

I went back and played around a bit with the source code.  I was able to add the functions needed to this version so they would work with Ndless 1.7 (thanks critor for "chdir" Smiley).  Now, just put all the images you want with the name *.bmp.tns in a folder "bmpviewer" (similar to what it done with .gb/.gbc files).  Run "bmpviewer" and you can select your image from the displayed list.  All of the images must be in "bmpviewer" but the actual "bmpviewer.tns" can be in any folder.

Enjoy! Smiley

EDIT: Er, I guess it might be good if I remember to attach the file Tongue.

* bmpviewer_1.tns (5.86 KB - downloaded 193 times.)
« Last Edit: 12 December, 2010, 04:39:42 by apcalc » Logged


ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:41:25
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 766

Total Post Ratings: +151

View Profile
« Reply #6 on: 12 December, 2010, 10:57:15 »
0

apcalc, could you please share the modifications required for OS 1.7 compatibility so that I can re-integrate them?
Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
jboavida
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 04 July, 2011, 00:50:03
Date Registered: 12 December, 2010, 00:25:08
Posts: 6

Topic starter
Total Post Ratings: 0

View Profile
« Reply #7 on: 12 December, 2010, 14:06:33 »
0


Apcalc

Works like a charm.
You save my day! Thanks!  w00t
Logged
apcalc
The Game
Coder Of Tomorrow
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: 19 May, 2013, 16:59:33
Date Registered: 20 March, 2010, 16:31:47
Location: 2003 UB313
Posts: 1393


Total Post Ratings: +118

View Profile
« Reply #8 on: 12 December, 2010, 16:56:25 »
0

apcalc, could you please share the modifications required for OS 1.7 compatibility so that I can re-integrate them?

Sure!

First, I had to add NU_Current_Dir with SYSCALL_CUSTOM:


1
2
3
static const unsigned addresses[]={0X102ABE70,0X102ADE80};
#define  NU_Current_Dir SYSCALL_CUSTOM(addresses, int, const char* drive, const char* dirbuffer)

Then, I replaced the "dirlist.c" in the original source with the one included with critor's "ndshell" as bwang's original one used a function "undocfunction(path)" (which I assume is chdir(path)?).  Also, as critor said, I added this to os.h:


1
2
_SYSCALL1(int, chdir, char*)
« Last Edit: 12 December, 2010, 16:56:35 by apcalc » Logged


ExtendeD
Coder Of Tomorrow
LV8 Addict (Next: 1000)
*
Offline Offline

Gender: Male
Last Login: Today at 02:41:25
Date Registered: 02 January, 2010, 13:03:41
Location: France
Posts: 766

Total Post Ratings: +151

View Profile
« Reply #9 on: 12 December, 2010, 22:39:06 »
0

Thanks, it's now available on the Subversion trunk.
Logged

ndlessly - Progress and insights on Ndless
Ndless / Hackspire - Third-party TI-Nspire development
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.408 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.