Welcome, Guest. Please login or register.
Did you miss your activation email?

Username: Password:


Pages: [1]   Go Down

Author Topic: Make pleo sick on command  (Read 8069 times)

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Make pleo sick on command
« on: January 25, 2009, 07:33:17 AM »

I was tinkering in Dino-MITE just now nd figured out how to make pleo sick on command.

Simply execute the following command:
property set 20556 <level>  Replace level with however sick you want to make him/her.  100 is a nice level which you can reverse wthin a minute.

Enjoy! :)
Logged


zarumbatus

  • Conifer Leaf gatherer
  • ** Posts: 23
  • Male
    • zarumbatus's portofolio
Re: Make pleo sick on command
« Reply #1 on: January 25, 2009, 03:24:42 PM »

Interesting !

Where did you get a properties list ?
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #2 on: January 25, 2009, 03:44:16 PM »

use the property show command
Logged

fancyfont

  • Cretaceous pleo master
  • * Posts: 2575
  • us Female
  • Pleo(s): Peeky, Pennie, JayCamerasaurus (J.C.), LOA, baby and DinhaJo
  • : 2013 winner2011 winner2008 winnerTomato Harvest Festivals
  • No, Peeky and Pennie, you can't have the Harley!
Re: Make pleo sick on command
« Reply #3 on: January 25, 2009, 05:45:03 PM »

Is there any way to put this on a sd card?
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #4 on: January 25, 2009, 05:51:58 PM »

Not that I know of.  Anyone know how automon.txt files work?  I tried putting the following code into an automon.txt file and nothing out of the ordinary happened:

Code: [Select]
log disable all
property set 20556 50

Any ideas?
« Last Edit: January 25, 2009, 06:09:36 PM by degers »
Logged

mweed

  • Grand Poobah
  • Triassic pleo master
  • ***** Posts: 1758
  • us Male
  • Pleo(s): Bob, Mopey
  • : Tomat Harvest Festivals
    • Professor
    • Wile_E_Coyote
    • Dr_Bunsen_Honeydew
    • Snoopy
    • Bob the Pleo
Re: Make pleo sick on command
« Reply #5 on: January 25, 2009, 08:18:47 PM »

Automon.txt is a batch file.  The only commands that work are those that function on the pleo OS command line.  So if the command you are entering is a standard command it should work.  If it is a command interpreted by dino-MITE, then it won't.

But you're whole idea is just SICK!  ;)
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #6 on: January 26, 2009, 09:49:11 AM »

The problem with automon.txt is that I think it gets read before eveything else.  FOr instance aibopet's reset script deletes pm_props which houses all the properties of the pleo personality.  If the automon.txt file is read after pm_props is opened and read/write starts surely there would be a file conflict error.  So my theory is that automon.txt is read before anything else.  So my property set command would be set but then when pm_props is read this would overwrite the value I set in automon.txt.

Badly written I know, but these are my thoughts at present.
Logged

mweed

  • Grand Poobah
  • Triassic pleo master
  • ***** Posts: 1758
  • us Male
  • Pleo(s): Bob, Mopey
  • : Tomat Harvest Festivals
    • Professor
    • Wile_E_Coyote
    • Dr_Bunsen_Honeydew
    • Snoopy
    • Bob the Pleo
Re: Make pleo sick on command
« Reply #7 on: January 26, 2009, 10:50:42 AM »

I believe you are correct that the script is read at boot, before the pleo starts up.  So you would be right.  The solution then is to modify the pm_props file.  What you may have to do is copy the file to the SD card, edit on your PC, and then copy back to your pleo. 

So, what we need is either a pm_props editor program custom written to help owners know what they are changing, or some details on the file to allow people to make spot changes without screwing up their pleo's whole personality.   Sounds like you need a pleo psychologist . . . or a pleo whisperer . . . ;)
Logged

zarumbatus

  • Conifer Leaf gatherer
  • ** Posts: 23
  • Male
    • zarumbatus's portofolio
Re: Make pleo sick on command
« Reply #8 on: January 26, 2009, 11:53:21 AM »

Writting to the pleo seems ok but is it possible to delete the file after ?
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #9 on: January 26, 2009, 12:07:31 PM »

When you write the PM_props file to the pleo you will over write the existing one.  What mweed is saying is a correct idea, but it seems too much hassle.
Logged

mweed

  • Grand Poobah
  • Triassic pleo master
  • ***** Posts: 1758
  • us Male
  • Pleo(s): Bob, Mopey
  • : Tomat Harvest Festivals
    • Professor
    • Wile_E_Coyote
    • Dr_Bunsen_Honeydew
    • Snoopy
    • Bob the Pleo
Re: Make pleo sick on command
« Reply #10 on: January 26, 2009, 12:15:38 PM »

you don't want to simply delete the pm_props file, as this holds most of your pleo's personality.  In fact, replacing the file is essentially permanently altering your pleo's personality.  So this should be done with great care.  Ideally what you want to do is make a copy of the file, so that you could return it to it's original state when finished.

What degers was originally doing was manipulating the settings inside dino-MITE while the pleo was turned on.  This is somewhat safer.   My SD card suggestion is not an ideal solution.

What we really need is a way to shadow the pm_props file, like we can do with the other files.  Have you tried that yet degers?  copy the pm_props, modify it and put in on an SD card WITHOUT an automon script, and see if pleo will read the shadowed file?
Logged

zarumbatus

  • Conifer Leaf gatherer
  • ** Posts: 23
  • Male
    • zarumbatus's portofolio
Re: Make pleo sick on command
« Reply #11 on: January 26, 2009, 12:38:23 PM »

I didn't wanted to deleted those essentials files but the files that I added with the camera and without an SD card :/

Will the OS recreate the pm_props file if not existing ?

I don't understand a thing : when you copy a file don't you shadow it ?
Logged

mweed

  • Grand Poobah
  • Triassic pleo master
  • ***** Posts: 1758
  • us Male
  • Pleo(s): Bob, Mopey
  • : Tomat Harvest Festivals
    • Professor
    • Wile_E_Coyote
    • Dr_Bunsen_Honeydew
    • Snoopy
    • Bob the Pleo
Re: Make pleo sick on command
« Reply #12 on: January 26, 2009, 12:58:40 PM »

If you delete the pm_props file, the OS will create a new one.  This is part of the process for resetting your pleo to go through the hatching phase again.

If you copy the file to the SD card (using an automon.txt script) without renaming it, yes you would in essence be shadowing it, but how would you ever know, since it is identical to the one in pleo's flash memory.  The thought would be to make a copy, then modify the copy (like setting that sickness property to 200), and then you could easily tell if your pleo was reading the file off the card or not.  If (and hopefully so) your pleo acts really sick, then we know you can shadow the pm_props file.   Because if you can, then, that opens up the possibility of creating pm_props files that would let you pop in a card and re-hatch your pleo.  Or have a card that makes your pleo much more of an explorer, etc.
Logged

zarumbatus

  • Conifer Leaf gatherer
  • ** Posts: 23
  • Male
    • zarumbatus's portofolio
Re: Make pleo sick on command
« Reply #13 on: January 26, 2009, 01:14:50 PM »

Ok thanks for your explanation, it's clear for me now :)

Witch software do you use to read pm_props ?
I used mousepad -> get this -> Òð‹G -> unreadable to me :)
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #14 on: January 26, 2009, 03:59:52 PM »

Ok I tried this:

  • Boot up pleo connected to Dino-MITE with a blank sd card inserted
  • Ran the following command property set 20556 100
  • Pleo got sick
  • I then copied pm_props to the sd card using the following command cp pm_props A:\pm_props2, making sure I was in the B: drive as my working directory
  • I then checked the file had been saved to the sd card by chdrv A: followed by ls.  The file was copied successfully as pm_props2
  • I then ran the following command property set 20556 0, Eekie was well again.
  • I then disconnected Dino-MITE and powered off Eekie and transferred the SD card to my computer, where I renamed pm_props2 to pm_props
  • I powered on Eekie to check everything was in order.  Eekie booted up normally and was not sick
  • I powered off Eekie and inserted the SD card with the pm_props file on it
  • I then powered on Eekie and Eekie booted up normally and was not sick.

Now I'm stuck for ideas :)
« Last Edit: January 26, 2009, 04:03:22 PM by degers »
Logged

mweed

  • Grand Poobah
  • Triassic pleo master
  • ***** Posts: 1758
  • us Male
  • Pleo(s): Bob, Mopey
  • : Tomat Harvest Festivals
    • Professor
    • Wile_E_Coyote
    • Dr_Bunsen_Honeydew
    • Snoopy
    • Bob the Pleo
Re: Make pleo sick on command
« Reply #15 on: January 26, 2009, 04:27:46 PM »

Well, that ruins my shadowing idea. :( 

Well, I guess to be sure, copy the pm_props to A:\pm_props_well, set the property, copy the file a second time to pm_props_sick, so that you could do a binary compare and see if changing the property was actually saved to the file or just changed in memory . . .

Otherwise put a copy of the sick pm_props on an SD card, and call it "pm_props".  Then create this automon.txt script:

Code: [Select]
access 3
cp b:pm_props a:pm_props2
rm b:pm_props
cp a:pm_props b:pm_props
rm a:pm_props
mv a:pm_props2 a:pm_props

This should (in theory) take your existing pleo's personality, back it up to the SD card, then replace the pleo's personality with the new one from the card.  The second time you power on your pleo, it would swap your old personality back into your pleo.  Each time you turn on your pleo with the SD card in, it swaps the personalities between the pleo and the card.

If it doesn't work, well, I guess you can always start all over again with your pleo. ;) ;) :P
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #16 on: January 26, 2009, 04:35:35 PM »

Mike, you got it in one.
We don't know when the pm_props file is changed.  I  am just about finished for this evening, im pooped with all of this tinkering!
« Last Edit: January 26, 2009, 04:37:09 PM by degers »
Logged

degers

  • Administrator
  • Pleo adept
  • * Posts: 722
  • gb Male
  • Degers can't be choosers
Re: Make pleo sick on command
« Reply #17 on: January 26, 2009, 04:59:49 PM »

Right.  I tried this:

I made pleo sick as before and saved the resulting props file as pm_props_sick.  I then made Eekie heathy again.

I then used the following as an automon.txt

log disable all
access 3
rm B:\pm_props
copy A:\pm_props_sick B:\pm_props


Eekie woke up feeling fine.  I then doubted whether the automon.txt was working properly so I held Eekie by the tail untill he got sad then I powered him off.  I expected him to be sad when i powered him back on but he woke up happy, so that meant that the old pm_props file was being deleted and replaced properly.  This is getting tricky!

Edit:  I tried the whole hold by the tail thing without the automon.txt got the same result and so now im just not sure.

Edit 2: I tried mking pleo sick and turning him off and on agai with no sd card inserted.  Pleo was fine after rebooting.  I am comletely stuck, it seems like nothing is being written to the Dataflash!
« Last Edit: January 26, 2009, 05:24:45 PM by degers »
Logged

allosaurus

  • Guest
Re: Make pleo sick on command
« Reply #18 on: January 29, 2009, 05:48:18 AM »

What if Pleo doesn't feel like catching a cold? ;)
Logged
Pages: [1]   Go Up
 

SimplePortal 2.3.5 © 2008-2012, SimplePortal