gametechmods

Robot Arena => General Support => Topic started by: Vertigo on June 21, 2011, 10:49:34 AM

Title: Windows 7 does not like RA2
Post by: Vertigo on June 21, 2011, 10:49:34 AM
I opened up the AI folder, and opened up a team logo image, and changed it

Still remained a .bmp, same size, same file name
I start RA2, go to select an AI bot, and it crashes

I have noticed by clicking on the folder RA2 is in, properties, it is in "Read Only"
I unchecked "Read Only", and clicked on "Apply", but as soon as I re-open the properties, and it reset itself to "Read Only"

I much preferred Vista  :(
Title: Re: Windows 7 does not like RA2
Post by: G.K. on June 21, 2011, 10:52:48 AM
You may have to be an admin to fix that.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 21, 2011, 10:55:38 AM
lol I am

Its my laptop and there's only one login
Title: Re: Windows 7 does not like RA2
Post by: J on June 21, 2011, 10:57:12 AM
TC, is your RA2 out of your C drive?
Because Windows 7 only hates it while its in there.
(...At least if I remember correctly)
Title: Re: Windows 7 does not like RA2
Post by: Scorpion on June 21, 2011, 10:57:49 AM
I have this same problem with windows 7, I've managed to get it to stay unchecked on one of my games, although i don't have a clue how, as every other time it just resets like you said.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 21, 2011, 10:58:33 AM
Yeah, its on my C drive

EDIT: Just put the folder on my desktop and doesn't make any difference
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 10:24:16 AM
Any other ideas?

If I can't fix this, I'll never be able to release SkAI High or host another tourney
Title: Re: Windows 7 does not like RA2
Post by: Squirrel_Monkey on June 22, 2011, 10:35:05 AM
What did you edit the .bmp with?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 10:39:53 AM
paint.net
Title: Re: Windows 7 does not like RA2
Post by: Squirrel_Monkey on June 22, 2011, 10:44:11 AM
What depth did you save it as? Sometimes RA2 doesn't like it.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 10:47:45 AM
Its not because of the team picture it won't work

If I open teams.txt, don't change anything, but save it, then it will crash too, I simply cannot edit anything in the RA2 folder
Title: Re: Windows 7 does not like RA2
Post by: Squirrel_Monkey on June 22, 2011, 10:49:41 AM
Can you for example, rename a bot in the robot designs folder?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 10:58:39 AM
Nope
Title: Re: Windows 7 does not like RA2
Post by: Squirrel_Monkey on June 22, 2011, 11:00:55 AM
DO you have editing rights to all the files and folders of RA2?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 11:01:41 AM
Should have

I have noticed by clicking on the folder RA2 is in, properties, it is in "Read Only"
I unchecked "Read Only", and clicked on "Apply", but as soon as I re-open the properties, and it reset itself to "Read Only"
Title: Re: Windows 7 does not like RA2
Post by: Squirrel_Monkey on June 22, 2011, 11:03:33 AM
For some reason my anti-virus made nothing editable on my RA2 for my laptop. Try disabling it for 5 mins. (Disconnect the internet first). If not that, I got no idea.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 22, 2011, 11:54:53 AM
Nope
Title: Re: Windows 7 does not like RA2
Post by: J on June 22, 2011, 04:53:00 PM
Nope
This might sound crazy, but maybe its still thinking its part of the C Drive, as that "second" RA2 still exists in that hidden folder section.
Title: Re: Windows 7 does not like RA2
Post by: Scorpion on June 22, 2011, 04:55:54 PM
Nope
This might sound crazy, but maybe its still thinking its part of the C Drive, as that "second" RA2 still exists in that hidden folder section.
I believe I have the same problem, and my copy has never been on my C drive.
Though, just to check, is there a delay before it crashes Vertigo, as in it comes up with the teams and the bots, but then it crashes?
Title: Re: Windows 7 does not like RA2
Post by: nightcracker on June 23, 2011, 06:48:55 AM
This doesn't seem crazy at all, you just need to be a bit technical to understand this WTF?!?! situation.

I think you are using the wrong (windows) tools to edit the files.

BMP images aren't just BMP images, you can have various bit depths and other settings. The programming of RA2 assumes these properties of the BMP image and crashes if these assumptions aren't true. Use the GIMP for editing the image. I think it saves the image with the same depth-properties as it opens the image.

The same goes for text files. Text files have to be saved in a certain encoding. An encoding is a convention for what values (since a computer only understands numbers, or bits) we use for what characters. Different encodings exist and I think RA2 assumes one encoding while your editor uses a different encoding. Try editing the image with Notepad++, it should save the file in the same encoding as it was opened.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 10:06:21 AM
This doesn't seem crazy at all, you just need to be a bit technical to understand this WTF?!?! situation.

I think you are using the wrong (windows) tools to edit the files.

BMP images aren't just BMP images, you can have various bit depths and other settings. The programming of RA2 assumes these properties of the BMP image and crashes if these assumptions aren't true. Use the GIMP for editing the image. I think it saves the image with the same depth-properties as it opens the image.

The same goes for text files. Text files have to be saved in a certain encoding. An encoding is a convention for what values (since a computer only understands numbers, or bits) we use for what characters. Different encodings exist and I think RA2 assumes one encoding while your editor uses a different encoding. Try editing the image with Notepad++, it should save the file in the same encoding as it was opened.
I did use Notepad++ to edit the files

That's not the problem, if anything changes within the RA2 folder, if I save any file, regardless how I do it, crashes the game
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 01:44:27 PM
Ermm, everythings OK now :P

Basically just extracted another copy of RA2, copied the files across, and it worked
T'was like the other copy was corrupt or something?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 02:00:05 PM
OK, actually, not all OK

Just unchecked edited the teams, changed names, pictures etc and all was OK
Then edited the bindings.py and put two new lines in saying this

        list.append( ("Brain Washer 6", "Omni", { 'topspeed': 12.0, 'throttle': 110, 'turn':60, 'turnspeed':1.5, 'weapons': (13,) }) )
   list.append( ("Final Flipper", "Flipper", { 'topspeed': 12.0, 'throttle': 110, 'turn':60, 'turnspeed':1.5, 'weapons': (13,) }) )

Aaaaand it crashes on startup
Title: Re: Windows 7 does not like RA2
Post by: Conraaa on June 23, 2011, 02:02:08 PM
OK, actually, not all OK

Just unchecked edited the teams, changed names, pictures etc and all was OK
Then edited the bindings.py and put two new lines in saying this

        list.append( ("Brain Washer 6", "Omni", { 'topspeed': 12.0, 'throttle': 110, 'turn':60, 'turnspeed':1.5, 'weapons': (13,) }) )
list.append( ("Final Flipper", "Flipper", { 'topspeed': 12.0, 'throttle': 110, 'turn':60, 'turnspeed':1.5, 'weapons': (13,) }) )

Aaaaand it crashes on startup
One has spaces at the beginning the other has tabs at the beginning.
Bindings don't like tabs.
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 02:17:35 PM
FFFFUUUUUUUUUUU, how didn't i notice that?

Anyway, what are the control names for FBSPlus.py
Title: Re: Windows 7 does not like RA2
Post by: Conraaa on June 23, 2011, 02:18:07 PM
Forward, LeftRight and Spin isn't it?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 02:18:31 PM
I thought it used ahead?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 23, 2011, 02:28:27 PM
      list.append(("SnStorm","FBSPlus",'radius':1.5,'spinspeed':10,'topspeed':100,'range':99,'throttle':130,'turn':60,'turnspeed':4,'weapons':(2,)}))

So it doesn't like these

Got an SNS to work on Bee.py, decided to try and use this one since everyone seems to use this now
Don't see what's wrong with Bee.py though :/
Title: Re: Windows 7 does not like RA2
Post by: G.K. on June 23, 2011, 03:24:41 PM
I thought it used ahead?

Nope, that's FBS_1.


      list.append(("SnStorm","FBSPlus",{'radius':1.5,'spinspeed':10,'topspeed':100,'range':99,'throttle':130,'turn':60,'turnspeed':4,'weapons':(2,)}))

I entered and bolded a square bracket you missed.
Title: Re: Windows 7 does not like RA2
Post by: nightcracker on June 23, 2011, 05:02:07 PM
G.K., that's a curly brace ;)

Code: [Select]
Curly brace:    }
Square bracket: ]
Title: Re: Windows 7 does not like RA2
Post by: G.K. on June 23, 2011, 05:25:10 PM
Shut up. :P
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 24, 2011, 10:46:49 AM
So, I've AI'd an SNS with those bindings, and it still doesn't move towards its opponent or avoid immobility?
Title: Re: Windows 7 does not like RA2
Post by: G.K. on June 24, 2011, 10:49:06 AM
Controls named?
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 24, 2011, 10:51:39 AM
Forward, LeftRight & Spin
Title: Re: Windows 7 does not like RA2
Post by: JoeBlo on June 24, 2011, 11:04:33 AM
Is "Spin" wired to the drive ? if so thats why it isnt working..

the Spin control is there for HS / SnS hybrids the AI python will spin the robot using "LeftRight"
Title: Re: Windows 7 does not like RA2
Post by: Vertigo on June 24, 2011, 11:25:15 AM
Ah, that would be the problem :D