Author Topic: strange  (Read 940 times)

Offline Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
strange
« on: February 16, 2010, 11:50:51 AM »
if you put :D at the end of a exported robots name or a custom texture this happens
 

so dont get to worked up about files not working people

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: strange
« Reply #1 on: February 16, 2010, 11:51:36 AM »
Hi Jack.
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 Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
Re: strange
« Reply #2 on: February 16, 2010, 11:51:53 AM »
hi

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: strange
« Reply #3 on: February 16, 2010, 12:11:14 PM »
In windows, file names may not contain any of these forbidden characters: \ / : * ? " < > |
(To my understanding, Mac and Linux have similar restrictions on names)

If you try to export something with any of these in the file name, the game will stop transferring data into the file as soon as it gets an error (resulting in 0 byte files with names that have everything up until the forbidden character).

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: strange
« Reply #4 on: February 16, 2010, 12:57:36 PM »
You know what's awesome? Try to create a file called con.txt on windows. Or con.anyextension for that matter.

That's boilerplate for compability with DOS application in times there were no folders (every file was stored in the same root catalogue on the disk). Why? Because such files (CON, COM1, LPT1, etc) were files through which programs could access i/o ports of a computer. When DOS evolved to get folders, it had to "emulate" those magic files in every folder, to retain compability with older applications. That's right kids, Windows 7 has still some code left from DOS 1.0.
This is why boilerplate makes Windows suck. Microsoft needs to get over old sh** and create a totally new operating system, like Apple did with OS X. You will lose compability with older software, but what the heck, this sort of sh** IS annoying.


Back on topic. I am surprised RA2 doesn't crash when you try to export something with : in it's name. CreateFile() returns INVALID_HANDLE_VALUE on error, so WinAPI functions to write to a file should (in theory) throw an exception when trying to access a NULL file, which in turn isn't handled by RA2 (otherwise it'd make a nice dialog "cant' save to file you suck blablabla"), and would make the C++ runtime freak out and terminate the program.
WinAPI is one curious beast.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org