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.


Topics - mikeg

Pages: [1]
1
Newbie Coding / (Probably) stupid question about the maps
« on: October 18, 2010, 12:42:09 pm »
Hello,

maybe anyone could answer this question: I want to test some things in the new 2.4-dev and have many problems which could not be the case because anyone else would write "I have this, too", because they are essentially for the game.

I have some problems regardung the calculation of distances and points on the geoscape but they are not reproducable (it seems so). They occur many times on my PC but if I make a save and provide this to another guy, the problem seems to not exist. Also, if a reload my game the problem is gone away, but it will happen at any other timeframe later.

Is it possible, that I forgot something to build?

I explain, what I have done:

- Checkout from git
- Do some changes in the cl_input.c (for example)
- Compile & Link (build) the ufo.exe as well as all other targets which are build using "all"
- Start the new .exe => got problems

Has someone an explanation for that? I can only believe, that I got something wrong.

Best regards

PS: I mean for example this log entries:
Code: [Select]
2010/10/18 12:30:07ExecuteString: ''
2010/10/18 12:30:07ExecuteString: 'map day +ufocrash craft_crash_fighter'
2010/10/18 12:30:07Set server state to 1
2010/10/18 12:30:07------- Loading game.dll -------
2010/10/18 12:30:07not found at '/usr/local/lib'
2010/10/18 12:30:07Failed loading /usr/local/lib/game.dll: Das angegebene Modul wurde nicht gefunden.

2010/10/18 12:30:07not found at 'C:\Users\Maik\AppData\Roaming\UFOAI/2.4-dev/base'
2010/10/18 12:30:07Failed loading C:\Users\Maik\AppData\Roaming\UFOAI/2.4-dev/base/game.dll: Das angegebene Modul wurde nicht gefunden.

2010/10/18 12:30:07found at './base'
2010/10/18 12:30:07==== InitGame ====
2010/10/18 12:30:07SpawnServer: +ufocrash
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_ufo
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_crash_fighter
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_drop
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_drop_firebird
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_ufo
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_crash_fighter
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_drop
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_drop_firebird
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_ufo
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_crash_fighter
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_drop
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_drop_firebird
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_ufo
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_crash_fighter
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_drop
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_drop_firebird
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_ufo
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_crash_fighter
2010/10/18 12:30:07SV_GetCvarToken: cvar replacement: rm_drop
2010/10/18 12:30:07SV_ParseAssembly: cvar replacement value: +craft_drop_firebird
2010/10/18 12:30:07numTiles: 23
2010/10/18 12:30:07numAssemblies: 5
2010/10/18 12:30:07Use assembly: 'craft_crash_fighter'
2010/10/18 12:30:07tiles: -ufocrash/uc_ +craft_drop_firebird +craft_crash_fighter +d01 +h07 +h01 +h05 +h01 +h02 +h02
2010/10/18 12:30:07pos: 8 -8 0 -24 0 0 16 8 0 -24 -16 0 -24 16 0 0 -16 0 8 -16 0 0 0 0 24 -16 0
2010/10/18 12:30:07tiles: 9
2010/10/18 12:30:07CM_LoadMap: "-ufocrash/uc_ +craft_drop_firebird +craft_crash_fighter +d01 +h07 +h01 +h05 +h01 +h02 +h02" "8 -8 0 -24 0 0 16 8 0 -24 -16 0 -24 16 0 0 -16 0 8 -16 0 0 0 0 24 -16 0"
2010/10/18 12:30:07CM_LoadMap: token: +craft_drop_firebird
2010/10/18 12:30:07CM_AddMapTile: ufocrash/uc_craft_drop_firebird at 8,-8,0
2010/10/18 12:30:07********************
2010/10/18 12:30:07ERROR: Couldn't load maps/ufocrash/uc_craft_drop_firebird.bsp
2010/10/18 12:30:07********************
2010/10/18 12:30:07Shutdown server: Server crashed.
2010/10/18 12:30:07Set server state to 4
2010/10/18 12:30:07Shutdown the game thread
2010/10/18 12:30:07==== ShutdownGame ====
2010/10/18 12:30:07Free inventory slots in game on shutdown: 0
2010/10/18 12:30:07Unload the game library
2010/10/18 12:30:07ExecuteString: 'music_change geoscape'
2010/10/18 12:30:07music change to karlmacklin_geoscape (from Crystan-Geosphere04)
2010/10/18 12:30:07ExecuteString: ''
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07ExecuteString: '-leftmouse 200 206105'
2010/10/18 12:30:07ExecuteString: '-select 200 206105'
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:07Mission is cat2_interest32_0, 2
2010/10/18 12:30:08Mission is cat2_interest32_0, 2
2010/10/18 12:30:08Mission is cat2_interest32_0, 2
2010/10/18 12:30:08Mission is cat2_interest32_0, 2
2010/10/18 12:30:08Mission is cat2_interest32_0, 2

Here the game keeps up on geoscape, I can reproduce this all of the time.

2
Coding / Question to the Linux users
« on: October 14, 2010, 09:50:54 pm »
Hello,

I tried to load a Linux Savegame in a Windows version. I got this log entries:

Code: [Select]
2010/10/14 21:40:27XML Written to buffer (2743397 Bytes)
2010/10/14 21:40:27ExecuteString: ''
2010/10/14 21:40:27ExecuteString: 'map day +ufocrash craft_crash_bomber'
2010/10/14 21:40:27Set server state to 1
2010/10/14 21:40:27------- Loading game.dll -------
2010/10/14 21:40:27not found at '/usr/local/lib'
2010/10/14 21:40:27Failed loading /usr/local/lib/game.dll: Das angegebene Modul wurde nicht gefunden.

2010/10/14 21:40:27not found at 'C:\Users\Maik\AppData\Roaming\UFOAI/2.4-dev/base'
2010/10/14 21:40:27Failed loading C:\Users\Maik\AppData\Roaming\UFOAI/2.4-dev/base/game.dll: Das angegebene Modul wurde nicht gefunden.

2010/10/14 21:40:27found at './base'
2010/10/14 21:40:27==== InitGame ====
2010/10/14 21:40:27SpawnServer: +ufocrash

Because it is a Savegame from 2.3 I will not think much about it. But: Has anyone a savegame from Linux for me to test this in 2.4-dev? I want to know, whether it is possible or not to load Linux saves in Windows. If this not possible, I will write a feature request or fix this by myself. I think it should be possible to provide a good debugging opportunity.

Best regards

3
Windows / [Please Test] Pre-Solution for the ALT-TAB problematic
« on: October 12, 2010, 08:18:21 pm »
Hello,

anyone who wants to give it a try, I attached a binary against the snapshot from http://www.libsdl.org/hg.php

It has absolutly no symbols for debugging, but solves the ALT-TAB on my test machine.

Please test and give feedback.

If it works, I can provide a 1.2.14 with the patch attached to http://bugzilla.libsdl.org/show_bug.cgi?id=849

Regards

Mike

4
Coding / Symmetric Multi Processing
« on: October 09, 2010, 03:29:19 pm »
Hello,

I just think about the possibility to support more than one CPU core. I have a AMD 64 X2 Dual core. What about to support that by using e.g. OpenMP library?

Regards

Mike

5
Coding / New jpeg version (8b)
« on: October 04, 2010, 10:47:28 pm »
Hello forum,

first let me say hello to all. I played UFO in the early days. Now I really like the idea to give this very cool game a new fresh face and want to contribute the work if I am able to do it.

In the meanwhile I keep on translating the missing texts into german which is my native language.

I'm a software developer which is able to code in C(++) and Java with a intermediate knowlegde about the basics.

Now I try to look what is possible regarding new versions of the used libraries. First I want to investigate the libjpeg. I tried to download the 6b but had to search a couple of minutes to find it. On http://www.ijg.org the latest version is 8b. I want to ask if the project owners are willing to update? Lets take a look onto the changelog:

Quote
CHANGE LOG for Independent JPEG Group's JPEG software


Version 8b 16-May-2010
-----------------------

Repair problem in new memory source manager with corrupt JPEG data.
Thank to Ted Campbell and Samuel Chun for the report.

Repair problem in Makefile.am test target.
Thank to anonymous user for the report.

Support MinGW installation with automatic configure.
Thank to Volker Grabsch for the suggestion.


Version 8a 28-Feb-2010
-----------------------

Writing tables-only datastreams via jpeg_write_tables works again.

Support 32-bit BMPs (RGB image with Alpha channel) for read in cjpeg.
Thank to Brett Blackham for the suggestion.

Improve accuracy in floating point IDCT calculation.
Thank to Robert Hooke for the hint.


Version 8 10-Jan-2010
----------------------

jpegtran now supports the same -scale option as djpeg for "lossless" resize.
An implementation of the JPEG SmartScale extension is required for this
feature. A (draft) specification of the JPEG SmartScale extension is
available as a contributed document at ITU and ISO. Revision 2 or later
of the document is required (latest document version is Revision 3).
The SmartScale extension will enable more features beside lossless resize
in future implementations, as described in the document (new compression
options).

Add sanity check in BMP reader module to avoid cjpeg crash for empty input
image (thank to Isaev Ildar of ISP RAS, Moscow, RU for reporting this error).

Add data source and destination managers for read from and write to
memory buffers. New API functions jpeg_mem_src and jpeg_mem_dest.
Thank to Roberto Boni from Italy for the suggestion.


Version 7 27-Jun-2009
----------------------

New scaled DCTs implemented.
djpeg now supports scalings N/8 with all N from 1 to 16.
cjpeg now supports scalings 8/N with all N from 1 to 16.
Scaled DCTs with size larger than 8 are now also used for resolving the
common 2x2 chroma subsampling case without additional spatial resampling.
Separate spatial resampling for those kind of files is now only necessary
for N>8 scaling cases.
Furthermore, separate scaled DCT functions are provided for direct resolving
of the common asymmetric subsampling cases (2x1 and 1x2) without additional
spatial resampling.

cjpeg -quality option has been extended for support of separate quality
settings for luminance and chrominance (or in general, for every provided
quantization table slot).
New API function jpeg_default_qtables() and q_scale_factor array in library.

Added -nosmooth option to cjpeg, complementary to djpeg.
New variable "do_fancy_downsampling" in library, complement to fancy
upsampling. Fancy upsampling now uses direct DCT scaling with sizes
larger than 8. The old method is not reversible and has been removed.

Support arithmetic entropy encoding and decoding.
Added files jaricom.c, jcarith.c, jdarith.c.

Straighten the file structure:
Removed files jidctred.c, jcphuff.c, jchuff.h, jdphuff.c, jdhuff.h.

jpegtran has a new "lossless" cropping feature.

Implement -perfect option in jpegtran, new API function
jtransform_perfect_transform() in transupp. (DP 204_perfect.dpatch)

Better error messages for jpegtran fopen failure.
(DP 203_jpegtran_errmsg.dpatch)

Fix byte order issue with 16bit PPM/PGM files in rdppm.c/wrppm.c:
according to Netpbm, the de facto standard implementation of the PNM formats,
the most significant byte is first. (DP 203_rdppm.dpatch)

Add -raw option to rdjpgcom not to mangle the output.
(DP 205_rdjpgcom_raw.dpatch)

Make rdjpgcom locale aware. (DP 201_rdjpgcom_locale.dpatch)

Add extern "C" to jpeglib.h.
This avoids the need to put extern "C" { ... } around #include "jpeglib.h"
in your C++ application. Defining the symbol DONT_USE_EXTERN_C in the
configuration prevents this. (DP 202_jpeglib.h_c++.dpatch)

A couple of improvements maybe interesting for the developers, e.g. the ability to use RGB 32bit (with Alpha channel) and the smartscale technique.

What about that?

Regards

Mike

Pages: [1]