project-navigation
Personal tools

Author Topic: am using windows RAR...  (Read 5019 times)

Offline Dr. Doom

  • Rookie
  • ***
  • Posts: 24
    • View Profile
am using windows RAR...
« on: August 30, 2011, 11:39:21 am »
hi
I change 0ufo.pk3 to 0ufo.rar by just rename it those 3 last char - *.rar, and I had no problems doing that.
but to put it back to 0ufo.pk3 that was more difficult to do.
I tried to rename it back but some how I can't get to those 3 last char - *.rar to change back to *.pk3

is there a special way to do it?


I wonder when you making an archive do I use something called "add to the archive" ?
and there you can change the name of the package, there I just change those 3 last char - from *.rar to *.pk3
but here's the problem when rar did packaged it was done very fast then normal.
so did I do it right or is the file not working??


EDIT; where do I put 0ufo.pk3 in installed ufoai231 ?
I put it under folder called base where all other *.pk3 is before.
but for some reason it's not working.
When I change a file must I recompile that file or do I recompile at all ??
« Last Edit: August 30, 2011, 11:56:17 am by Dr. Doom »

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: am using windows RAR...
« Reply #1 on: August 30, 2011, 11:51:46 am »
You need to rename .pk3 to .zip, and use «archive to zip» in rar-preferences. Even Rar can work with ZIP.

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: am using windows RAR...
« Reply #2 on: August 30, 2011, 12:08:37 pm »
hi
I change 0ufo.pk3 to 0ufo.rar by just rename it those 3 last char - *.rar, and I had no problems doing that.
but to put it back to 0ufo.pk3 that was more difficult to do.
I tried to rename it back but some how I can't get to those 3 last char - *.rar to change back to *.pk3

is there a special way to do it?

I wonder when you making an archive do I use something called "add to the archive" ?
and there you can change the name of the package, there I just change those 3 last char - from *.rar to *.pk3
but here's the problem when rar did packaged it was done very fast then normal.
so did I do it right or is the file not working??

"Let's figure out what you wanted to ask" task 3. :)

Some facts that may help you:
- *.pk3 are zip files not rar.
- (Win)rar (and UFO:AI) recognizes the file format by it's internal structure, not by the extension and the (Win)rar program can uncompress zip files. However:
- UFO:AI is looking for *.pk3 files only AFAIK. If it doesn't find pk3-s it tries to use individual files (files in the appropriate directory structure without packing)
- UFO:AI can't use rar packages.

I suppose you wanna make a MOD or just Cheat. If latter, I kindly ask not to do it. Cheating ruins the game. A game without difficulty has no fun to play. A game with much difficulties is a challenge. And beating a challenging game IS fun!

In case you wanna make a MOD, I suggest unpacking pk3-s ((re)move the packages after) and manipulate the files, test your modifications. When you're ready you can (but not necessary to) compress the directories into ZIP format (the same named packages they were in the official packs), then rename them to *.pk3.

-geever

Offline Dr. Doom

  • Rookie
  • ***
  • Posts: 24
    • View Profile
Re: am using windows RAR...
« Reply #3 on: August 30, 2011, 12:34:34 pm »
Where do I put nations.ufo file if I wanna try it out??


Am just using add to the archive and write original name - 0ufos.pk3 and it will packed and read pk3 file.

no am not making mod or cheat, just changing funding that all.

Maybe there is a different way to do it.
I like to see how the game playing out and only that (in that processes have some fun). :D

or is there a better way to learn how the game is working ??


I got an error;  Could not load 0ufos.pk3
so either packed can't use or I put it wrong dir.


I Checked the new pk3 file and all files are there.
am out of idea what can be wrong.
« Last Edit: August 30, 2011, 01:38:28 pm by Dr. Doom »

Offline Crystan

  • Project Artist
  • Captain
  • ***
  • Posts: 572
  • UFO:AI Lead Sound Artist
    • View Profile
    • http://crysea.cr.funpic.de/
Re: am using windows RAR...
« Reply #4 on: August 30, 2011, 01:37:43 pm »
Havn't read the whole thread but have you deactivated "Hide extensions for known file types" in your windows settings?

Offline Dr. Doom

  • Rookie
  • ***
  • Posts: 24
    • View Profile
Re: am using windows RAR...
« Reply #5 on: August 30, 2011, 01:48:03 pm »
okay that was better, how I can forget that :D
but stil 0ufos.pk3 not been loaded.

can I use nations.ufo to test it out?
where do I put it in installed game?

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: am using windows RAR...
« Reply #6 on: August 30, 2011, 02:40:19 pm »
Where do I put nations.ufo file if I wanna try it out??

base/ufos/

no am not making mod or cheat, just changing funding that all.
Maybe there is a different way to do it.
I like to see how the game playing out and only that (in that processes have some fun). :D
or is there a better way to learn how the game is working ??

You won't get how the game is working by changing nations' funding. Changing nations' funding is good for one thing only: cheating. If you wanna learn how the game is working, read the source.  Sorry if I'm a bit skeptic on this topic...

I got an error;  Could not load 0ufos.pk3
so either packed can't use or I put it wrong dir.

if it says "Could not load 0ufos.pk3" it found the file but couldn't load it. Which is possible if the pk3 is a RAR not a ZIP for example.

-geever

Offline Dr. Doom

  • Rookie
  • ***
  • Posts: 24
    • View Profile
Re: am using windows RAR...
« Reply #7 on: September 03, 2011, 10:22:22 pm »
base/ufos/
and if is not?
I have only i18n and maps and *.pk3s

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: am using windows RAR...
« Reply #8 on: September 03, 2011, 11:41:49 pm »
and if is not?
I have only i18n and maps and *.pk3s

stupid question.

-geever

Offline Dr. Doom

  • Rookie
  • ***
  • Posts: 24
    • View Profile
Re: am using windows RAR...
« Reply #9 on: September 04, 2011, 01:54:48 am »
Now I download the *.zip and after when I have used it to package *. kp3, now I can play the game without any problems. Anyway do not use *.rar if it is to *.zip or others. download zip'en and use it and nothing else. For my part, I understood not just that how important it was. So great was the difference. So for my part, I apologize it. So today as I enjoy the game.

Offline bayo

  • Professional loser
  • Project Coder
  • Captain
  • ***
  • Posts: 733
    • View Profile
Re: am using windows RAR...
« Reply #10 on: September 04, 2011, 09:00:31 am »
It exists many archive file formats. The game can't suppot all of them, cause the game is not an archive manager, which mean it is not our business to spend time on this aspect.

BTW i dont really understand why we continue to use .pk3 instead of .zip