Author Topic: Salvage a chassis shape from a corrupted bot file?  (Read 3766 times)

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Salvage a chassis shape from a corrupted bot file?
« on: November 07, 2010, 03:00:35 PM »
I think I might have ****ed up my Not Perfect replica, I put a skin on it and now it won't load in the botalab.  Please please please help me I don't have a backup.  Can I edit the bot file to get rid of the skin?

Many thanks.
 
UPDATE: Does anyone know how to make a new bot with an empty chassis using the bot file?  If I can salvage the shape, that would be the next best thing.
« Last Edit: November 15, 2010, 09:06:34 PM by Sonny_Resetti »

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #1 on: November 07, 2010, 03:01:24 PM »
How did you apply the skin?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #2 on: November 07, 2010, 03:03:29 PM »
I had a 256x256 PNG, renamed the extension to .bmp, and applied it as normal.  But it just gave me a blank skin, so I quit out of the program.  Now I'm trying to get back into Not Perfect's bot lab, but it never stops loading.

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #3 on: November 07, 2010, 03:08:14 PM »
Could you send me the bot file?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #4 on: November 07, 2010, 03:14:59 PM »
Sure thing:
https://gametechmods.com/uploads/files/NP.zip



It's got custom components, so I'll make you a zip with those if you need

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #5 on: November 07, 2010, 03:16:51 PM »
If my idea works, I won't need to open the bot file.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #6 on: November 07, 2010, 03:19:19 PM »
DP: It seems that the problem is not that there is a bad skin, it is that there is no skin whatsoever, not even the default one. Could you send the components please? I'll have a go at fixing it.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: Using BFE to remove a skin?
« Reply #7 on: November 07, 2010, 03:26:12 PM »
Could you not BFE a skin on, like light_metal.bmp or something?
Co-creator of The RA2 Randomiser



Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #8 on: November 07, 2010, 03:28:33 PM »
Did you download that pack in my sig with all the components and replicas?  If so, then you'll only need this one:
https://gametechmods.com/uploads/files/3718components.zip

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #9 on: November 07, 2010, 05:06:02 PM »
I think you have to resave it as a BMP, just adding .bmp at the end isn't enough.Did you check the file properties? (the skin)

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Using BFE to remove a skin?
« Reply #10 on: November 13, 2010, 05:24:09 PM »
Back before we discovered Notepad++, me and FB had to do all our BFE in regular Notepad by removing the skin and preview picture (which are the parts that cause the file to become corrupted if you save in Notepad).  The bots still work with no skin or preview, it just makes a new one when you go in the bot lab.  This glitch is caused by something else, probably to do with the fact that you tried to apply a png.


Best solution is probably to copy/paste the skin from another bot into Not Perfect's bot file.  This will ensure you get rid of any bad characters.  The skin is easy to find, just look for the word "Chassis" followed by a bunch of numbers, and finally a "true".  Right after the true is where the skin starts.  Then there's a bunch of compressed jargon, ending with a false.  Just copy/paste the stuff between the true and the false.  It would probably help to compare the surrounding areas of Not Perfect's bot file with another working bot file to be sure there are no other errors.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #11 on: November 14, 2010, 12:30:14 AM »
How do I copy the "jargon?"  When I try to paste it into Not Perfect's bot file, it just comes out as a blank.

Offline somestrangeguy

  • *
  • Posts: 2068
  • Rep: 2
  • If you can read this, your monitor is turned on.
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Using BFE to remove a skin?
« Reply #12 on: November 14, 2010, 04:58:19 AM »
Also for me atleast, whenever I paste inside a botfile, the bot becomes corrupted and unusable ingame...

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: Using BFE to remove a skin?
« Reply #13 on: November 14, 2010, 08:26:16 AM »
Also for me atleast, whenever I paste inside a botfile, the bot becomes corrupted and unusable ingame...

Because you use Notepad (which sh**s its electro-pants when it sees non-printable ASCII data).
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Using BFE to remove a skin?
« Reply #14 on: November 14, 2010, 05:15:27 PM »
How do I copy the "jargon?"  When I try to paste it into Not Perfect's bot file, it just comes out as a blank.


Using Notepad++?


Possible Alternative: Remake Not Perfect's chassis, then copy and paste all of the component and wiring data from the old one into the new one.  That ought to work too, though it will be a bit more work.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #15 on: November 14, 2010, 06:16:51 PM »
How do I copy the "jargon?"  When I try to paste it into Not Perfect's bot file, it just comes out as a blank.


Using Notepad++?
 
  Yes.  It can be done in Notepad++ right?

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Using BFE to remove a skin?
« Reply #16 on: November 14, 2010, 08:55:02 PM »
Well I've never tried it but it should work.


OH WAIT I just got another (good) idea!


Use Dummy's Bot Editor to reskin the bot.  You can get it from the "Tools" section on the main page.


Just open the bot in the Bot Editor, then click and drag a new .bmp skin onto the skin area in the editor.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #17 on: November 14, 2010, 09:29:41 PM »
Ok, so I've got the bot file in the bot editor, but even after I paste a new skin on, the "Save Changes" button in still greyed out, and I can't save changes.  Help?

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Using BFE to remove a skin?
« Reply #18 on: November 14, 2010, 09:35:01 PM »
Hmm... that's weird.  Try changing the preview picture too.  Use a 128x128 .tga file with no transparency for that.


Or maybe the skin needs to be a .tga?  I can't remember.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Resetti's Replicas

  • *
  • Posts: 4399
  • Rep: 18
  • Replica King
    • ResettisReplicas
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: Using BFE to remove a skin?
« Reply #19 on: November 14, 2010, 09:38:02 PM »
I tried both; no dice.