project-navigation
Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - virag0

Pages: 1 2 [3] 4
31
Mac / PPC 2.3.1 almost ready!
« on: August 10, 2011, 03:35:19 pm »
Good news everybody!

I have resolved the save game issue on 2.3.1 with PPC.
It does seem to be an endian problem.  The cp_save.c code has some methods
in it that converts via a function called "LittleLong" which does a byte swap.

Taking out these entries and assigning the variables without byteswapping now
allows the save/load of the slot data to both get a name and a time stamp.

I can do a patch if requested.....  ..the change was literally a no brainer.
I seem to recall doing the same thing in 2.3.0 but it didn't work, so the code must have
changed somehow...

When I work out why the intro prints out "intro_ sentence1" and so on intead of the actual text,
I will bundle up the PPC binaries required into a standalone app that should work on at least
PPC machines with an NVIDIA card.

Then I will have a go at 2.4......

32
Mac / Re: Compiling 2.3.1 for PPC - maps?
« on: August 10, 2011, 02:04:43 pm »
Hi,
I am resurrecting this post, since I have now got 2.3.1 running, but with the same save game
problem as 2.3.0, so something is not resolved.

Can anyone confirm they can save games  in 2.3.1 with a PPC version?

I can't yet get 2.4 working, so I want to get 2.3.1 going so PPC users can enjoy meanwhile.

I am soooo close to getting this working on PPC, just need help now with this save problem.
I have checked permissions, pahs etc, the problem is this bogus header corruption, but
the unpacked save file looks fine to me....



rachel

33
Mac / Re: Compiling 2.3.1 for PPC - maps?
« on: August 10, 2011, 01:02:09 pm »
OK!  I got the  maps working by extracting the tarball again and then recalled I had to disable
GL shading and realtime fx to get the maps up.
So now I can load a skirmish and kill aliens which appears to be OK thus far.

But now, I have the same save game problem as I had with 2.3.0:   When I save to a slot,
I type in a name and the game is ostensibly saved as slot0.savx. If I save and leave the game
running, then try to load the save file, there is firstly no text in the slot, but the game loads
the savefile correctly although the console says the file header is corrupted.

If I quit the game, restart and reload it, the slot text is empty and the game will not load, but prints
the "header corrupted" message again.

If I unpack the file, it looks like fully formed xml to me, so I have no idea now.

Same problems as previous version.....


Now someone has ported this to Android, who's working on the IOS port?  Ipads are screaming
for xcom!


rachel

34
Mac / Re: Compiling 2.3.1 for PPC - maps?
« on: August 10, 2011, 11:17:55 am »
Last time I did this on 2.3.0, I had the same problem.   The maps must have endian-ness for x86
and I am on PPC.   Recompiling the maps on my platform allowed the maps etc to load properly.

can someone please specify the exact URL method I need to use GIT to get the 2.3.1 repo,
specifically the base directory?

I am not very adept at git, yet.   In fact it is maddening as I am olde skoole rcs nerd.
When I followed the dpwnload source instructions, it keeps pulling back 2.4. which I do not want,
so if someone has a git rule to bring back 2.3.1base, that would be excellent.


rachel

35
Mac / Re: Compiling 2.3.1 for PPC - maps?
« on: August 10, 2011, 09:01:01 am »
Trying to fix this myself.   I copied the src/contrib directory into the 2.3.1 src tree.   Since it doesn't exist in 2.3.1,
it can't hurt to try.   But when I run the map-sync make directive I now get:

Code: [Select]
[eros:~/ufoai/ufoai-2.3.1-source] root# ./contrib/scripts/map-get.py upgrade
map-get version 0.0.4.2
getting list of available maps
downloading http://static.ufo.ludwigf.org/maps/Maps
Line "" corrupted
WARNING ufo2map version mismatch
Continue? [Y|n]y
INFO write files into /Users/rachel/ufoai/ufoai-2.3.1-source
base/maps/africa/af_craft_drop_firebird.map not found
base/maps/africa/af_craft_drop_herakles.map not found
base/maps/africa/af_craft_drop_raptor.map not found
base/maps/africa/af_craft_ufo_fighter.map not found
base/maps/africa/af_craft_ufo_harvester.map not found
base/maps/africa/af_craft_ufo_scout.map not found
base/maps/africa/af_empty1.map not found
base/maps/africa/af_empty2.map not found
base/maps/africa/af_empty5.map not found
base/maps/africa/af_empty6.map not found
base/maps/africa/af_fence1.map not found
base/maps/africa/af_fence2.map not found
base/maps/africa/af_fence3.map not found
base/maps/africa/af_house1.map not found
base/maps/africa/af_house2.map not found
base/maps/africa/af_house3.map not found
base/maps/africa/af_house4.map not found
base/maps/africa/af_house5.map not found
...
...
...
base/maps/village/vil_s06.map not found
base/maps/village/vil_s07.map not found
base/maps/village/vil_s08.map not found
base/maps/village/vil_s15.map not found
base/maps/wilderness.map not found
0 upgraded, 0 version mismatched, 0 already up to date


So, it looks like the map repo has changed for the new release 2.4?   

Please can someone source me a bundle that will do the necessary, so I can
compile the maps for 2.3.1 etc? 

I think I have the app working in every other respect - sound, graphics etc..... ;)


rachel

36
Mac / Compiling 2.3.1 for PPC - maps?
« on: August 10, 2011, 07:36:32 am »
Hi,
I have successfully compiled 2.3.1 on my Last Model G5 2.3 on 10.5.8.
But there is something wrong with the maps config.   I downloaded the 2.3.1 source as a tarball and then the maps from:

http://internode.dl.sourceforge.net/project/ufoai/UFO_AI%202.x/2.3.1/ufoai-2.3.1-data.tar

The maps dir looks like this:

Code: [Select]
[eros:~/ufoai/ufoai-2.3.1-source/base] root# ls -la
total 1042592
drwxr-xr-x@ 14 rachel  staff        476 10 Aug 15:12 .
drwxrwxr-x  32 rachel  staff       1088 10 Aug 15:23 ..
-rw-r--r--@  1 rachel  staff       4651 29 Nov  2010 0base.pk3
-rw-r--r--@  1 rachel  staff  136084567 25 Nov  2010 0maps.pk3
-rw-r--r--@  1 rachel  staff      13528 25 Nov  2010 0materials.pk3
-rw-r--r--@  1 rachel  staff   11034860 25 Nov  2010 0media.pk3
-rw-r--r--@  1 rachel  staff   78915743 25 Nov  2010 0models.pk3
-rw-r--r--@  1 rachel  staff  162768935 25 Nov  2010 0music.pk3
-rw-r--r--@  1 rachel  staff  134711881 25 Nov  2010 0pics.pk3
-rw-r--r--@  1 rachel  staff      14050 25 Nov  2010 0shaders.pk3
-rw-r--r--@  1 rachel  staff    9446428 25 Nov  2010 0snd.pk3
-rw-r--r--@  1 rachel  staff     191996 27 Nov  2010 0ufos.pk3
-rwxr-xr-x   1 rachel  staff     596620 10 Aug 15:08 game.dylib
drwxr-xr-x  28 rachel  staff        952 10 Aug 15:12 i18n
[eros:~/ufoai/ufoai-2.3.1-source/base] root# pwd
/Users/rachel/ufoai/ufoai-2.3.1-source/base

But when I do the following, according to the "documentation", I get these errors:

Code: [Select]
[eros:~/ufoai/ufoai-2.3.1-source] root# make maps
find: base/maps: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
make: Nothing to be done for `maps'.
[eros:~/ufoai/ufoai-2.3.1-source] root# make maps-sync
find: base/maps: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
contrib/scripts/map-get.py upgrade
make: contrib/scripts/map-get.py: Command not found
make: *** [maps-sync] Error 127
[eros:~/ufoai/ufoai-2.3.1-source] root# make pk3
find: base/maps: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
find: base/models: No such file or directory
make -f build/data.mk pk3
find: base/pics: No such file or directory
find: base/textures: No such file or directory
find: base/models: No such file or directory
find: base/sound: No such file or directory
find: base/music: No such file or directory
find: base/maps: No such file or directory
find: base/media: No such file or directory
find: base/shaders: No such file or directory
find: base/ufos: No such file or directory
find: base/materials: No such file or directory
make[1]: *** No rule to make target `base/mapcycle.txt', needed by `base/0base.pk3'.  Stop.
make: *** [pk3] Error 2
[eros:~/ufoai/ufoai-2.3.1-source] root#

So, the 508Mb data file download is not what I want.   Can someone please specify how to get the data so I can compile it?

I have both SVN and git, but do not know the correct URL for the map/pk3/data stuff.    So if someone has that,
I can do it. 

Remember this is for PPC 2.3.1 version - if I can get this up we will have a PPC version of 2.3.1 for the fans out there and I can
then get around to playing with 2.4.....

Please respond ASAP - I do not get a lot of time to work on this game ;)


rachel

37
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 08, 2010, 06:09:43 am »
Hi,
OK, I have a new subversion macport installed.  Now I know the version I compiled that works except for the savegame:

[eros:~/ufoai_2.3-old] root# svn info
Path: .
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/branches/ufoai_2.3
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 32055
Node Kind: directory
Schedule: normal
Last Changed Author: tlh2000
Last Changed Rev: 31968
Last Changed Date: 2010-08-27 20:33:35 +1000 (Fri, 27 Aug 2010)


Now, the other one I downloaded was a 9.8mb source only with the maps etc in /base derived from the install above.
This version can be found as:

http://sourceforge.net/projects/ufoai/files/UFO_AI%202.x/2.3/ufoai-2.3-source.tar.bz2/download

And it is different to the svn download above.   I did a diff -r on the two source trees and they are subtly different....

The svn download works fine, the 9.8mb source does not......

Cheers.......






38
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 08, 2010, 05:47:02 am »
Two things:
1. What is the output from "svn diff"?
2. What is the output from "svn info"?

That should tell me which specific revision you are working with.

Gah, now Loepard is telling me:

svn info
svn: This client is too old to work with working copy '.'; please get a newer Subversion client


Time to port install svn I guess.
I have not attempted a Solaris build yet.   Get Mac going first....

39
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 08, 2010, 05:18:55 am »
Alright, you are Nvidia, and I am ATI.
Yours works, mine does not.

I think we've got something.

Cool.....  progress is being made......   Would you like my Makefile/config opts etc?
It's pretty much just the simple Mac install.....

I can't see what causes the save game to break still however.....

Cheers....

40
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 06, 2010, 07:34:32 am »
I am compiling from source, not that it should really matter...

I compiled 2.4 dev from source, but it fails to run properly.  It will load up OK,
but the fan on my G5 starts up and goes into leaf blower mode.  When I select
a skirmish, it will have terrible trouble rendering the graphics and the mouse cursor
freezes.   I will have another look at this eventually.   

Between 2.3 and 2.4dev the cp_save.c file has undergone many changes, mostly
to do with access to functions and renamed stuff, but the core code that does the
savegame verify and load looks pretty much the same......


41
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 06, 2010, 06:32:58 am »
Just chiming in here to say that in 2.4-dev on PPC I have the same problem.

Are you saying you compiled it or you are trying to run a downloaded binary?
This thread is discussing compiling the game.   You can try the version I uploaded
today, but the savegames fail.  The campaign and skirmish modes work with caveats
as above.

I have been over the cp_save.c code a few times and cannot see what is causing the
game load error. I might play around with it a bit, but I have to first fully understand what
it is doing.    There has to be a clue - Mattn says the save file opens and loads correctly.
On my system the file is written out, but the console informs me it is corrupted.
So this is the first clue.   The code that writes the file is correct.   The code that
verifies it must be wrong!    I will dig instead of playing ;)




42
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 06, 2010, 02:23:44 am »
Hi.
I tried your copy of UFO on my system and it only gets as far as the splash screen  :(

Here is my current "working" copy that has the save game issue.
It works in campaign and skirmish mode if you disable GLSL shading and run
it at 1024x758 in a window.  For some reason, Full screen mode the game will
load but fail to load a skirmish.   For now, I just want the savegame to work!

https://docs.google.com/leaf?id=0B1I9frP6pXMMNTdiYzk2ZWYtOGU5Zi00MDEwLWJmNDgtMGZkN2FkZmVlM2Rk&hl=en&authkey=COnJ_54K

Feel free to download and this PPC only versions.....

Cheers....

43
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 04, 2010, 03:29:21 pm »
I thought the savefile looked OK, when I studied one uncompressed. 
What do you suggest I do?

The symptom when loading is two conditions:

1) Game is saved and reloaded without quitting UFO.
This appears to work fine.  If I save a game, I get the corrupted error
to the console, but it appears to be written fine.
It can be reloaded, although the text may or may not be
present in the slot text field.   Loading any one of these saves works.

2) Save game and then quit/restart
If I save the campaign and then immediately quit,
when I restart, I will no longer be able to see the save
games with their names in the slots.


As mentioned, I seem to have 2 codebases, so I am working with the one
that actually gives me a result (up to a point).  Is there a version file anywhere
that indicates what release of 2.3 it is I am actually compiling?

Cheers.....

44
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 04, 2010, 02:05:02 pm »
Please see the attached save game file.....

I will upload my .dmg as soon as I get info....



45
Mac / Re: ufoai 2.3 on OSX PPC Leopard - save game fails
« on: September 04, 2010, 02:01:26 pm »
Hi,
the game works perfectly except for the campaign save. 
I had to disable GLSL shading for everything to work.
I have  .dmg I can upload somehow if you want it.

I also have the corrupt save game which I will upload
for analysis.

Now, I seem to have 2 copies of the 2.3 source code.
They are both subtly different - the first thing I notice
is the build/install_mac.mk files are quite different.

The build that is working for me is a copy of the source out
of the cvs - it will make a full .dmg file that runs on my mac,
with all the libraries copies into the install root and it seems
to run fine except for the campaign file save. 
The second copy I am running compiles OK but faildswith a
stupid error on "@cp"  (I am not sure how cp is called in these build scripts but
they work differently in the 2 code branches) when I run
macinstaller - the ufo command itself dies with an mdx error
so I reckon this is a different package of code.   

If there is a place I can upload the .dmg, please let me know.



Pages: 1 2 [3] 4