To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 356
355  |  357
Subject: 
Re: Need to restore spybot mission scores
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Tue, 11 May 2004 14:55:54 GMT
Viewed: 
6532 times
  
In lugnet.robotics.spybotics, Steve Hassenplug wrote:
In lugnet.robotics.spybotics, Craig Rahenkamp wrote:
My son and I were experimenting with programming the spybot using the brixCC
software (neat package - thanks John Hansen!).  When we were done, he went back
to the default Spybot SW and discovered that all of his hard-earned mission
points had been wiped clear. ...


program SetMemory
{

#include<Spybot.h>
#include<Globals.h>
#include<Events.h>
#include<Messages.h>


main
{
//MemOp_Bead(nMem,nOperation,nValue)
nMem = 0      // eeprom memory address (0-255)
nValue = 0    // value (0-255)


MemOp_Bead(nMem,memSet,nValue)
}
}


Ok, here's a bit more info.  All the points/scores SHOULD be saved to the PC,
under the Spybot ID.  It sounds like your bot lost it's ID.  How sad.  :(

So, I'll suggest a couple options.
1) Try to find and load the original ID
or
2) Copy the data on the PC to the new ID

From the Spybot.h file, the ID is a 4 byte number (up to 4 billion?)

//EEPROM memory map (256 bytes, 0x00 to 0xff)
const eMotorControl = 0x00 //1 byte
const eSpecies = 0x01 //1 byte
const eLongID = 0x02 //4 bytes
const eUserLevel = 0x06 //1 byte

I'm not sure if you have that ID on the points screen.

Another option is to put a known number into the Spybot ID, play some missions,
then search for that ID on your hard drive.  You should be able to find the
original ID & score files in the same location.

Hope that helps
Steve



Message has 1 Reply:
  Re: Need to restore spybot mission scores
 
(...) Steve, Thank you for your posts. The data you have provided is correct. I have found the scores and the original longID of the spybot brick in RAS.LIF in the spybotics directory (There is some interesting stuff in the USER file as well). The (...) (20 years ago, 12-May-04, to lugnet.robotics.spybotics)

Message is in Reply To:
  Re: Need to restore spybot mission scores
 
(...) I'm not sure I can solve the problem, but this may help you get started. After looking in the Spybot SDK, I found "MemOp_Bead" which is a subroutine for Mindscript that sets eeprom. Mindscript is LEGO's own language. I think it works in (...) (20 years ago, 11-May-04, to lugnet.robotics.spybotics)

4 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