To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1600
1599  |  1601
Subject: 
...2 years later... :-) (was: newbie again part 2)
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Thu, 8 Jan 2004 22:48:41 GMT
Viewed: 
5105 times
  
Hello All,

In lugnet.robotics.rcx.nqc, Dave Baum wrote (almost two years ago, Thu, 17 Jan
2002 00:34:56 GMT -- your words are cherished, Dave! :-):

Actually, I wouldn't recommend using the simulator. • [...]
the simulator is only really useful
if you are a Java programmer and want to tinker around with it a bit.

Well, I am not (yet) a Java programmer, but try to become one, and would like to
see pbsim in action once, just for the heck of it :-)

So I am tinkering, but RCXTest even for the simplest 1-liner abc.rcx (e.g. just
one Wait statement) gives me the message "Error: could not read RCX program from
abc.rcx". (The .rcx file is in the same directory as RCXTest.class).

If I compile with "nqc -1 abc.nqc", the _compiler_ already complains that e.g.
"Wait" or "OnFwd" are undefined. Did the old NQC really not have Wait and OnFwd
etc.?

So, before I delve deeper into this (and get lost), I wonder: Will a new NQC
compiler (2.5.2.3), with or without the "-1" option, at all produce .rcx code
which the old pbsim can still understand, or have the versions diverged too far
perhaps?

Or am I being misled by these messages?
Any other reason why the .rcx file cannot be read? Another one of the famous
Java path hassles perhaps?

If the combo of NQC 2.5.2.3 and pbsim 1.0.a2 indeed _should_ work, I'll tinker
on...

Thanks for all hints!

Cheers,
Martin



Message has 1 Reply:
  Re: ...2 years later... :-) (was: newbie again part 2)
 
(...) It's been a long time since I looked at any of this, but I don't think the version of the NQC compiler is an issue, nor is the -1 option. The .rcx file format has been pretty stable for a long time. The -1 allows old source programs to be (...) (21 years ago, 9-Jan-04, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  Re: newbie again part 2
 
Actually, I wouldn't recommend using the simulator. My original intention was to develop the core of a simulator thus enabling other people to make a full-fledged application with nice menus and dialog boxes. Since that hasn't happened, the (...) (23 years ago, 17-Jan-02, to lugnet.robotics.rcx.nqc)

7 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR