Replacing Constores with Griff Trade outposts@Griff and Doc

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Tivva
---- E L I T E ----
---- E L I T E ----
Posts: 279
Joined: Wed Sep 03, 2008 5:32 pm
Location: Right behind you in a cloaked Thargoid Warship prototype

Post by Tivva »

Ark wrote:

My recommentation is to copy a shipdata.plist file from another oxp to YOUR_AD_HERE_set_A.oxp\config, delete all the contex, open the shipdata.plist of set A and copy & paste the following:

save the file and start again oolite by pressing the shipt key. If the problem will be gone in the first set i will give the the code for the rest 3 sets.
Hi Ark
Followed your instructions- still no joy.
When I pasted the new code into the plist i was asked
"You are trying to insert characters which cannot be handled by the file's current encoding without losing information. Do you want to insert the characters anyway?
I chose YES & clicked "Promote to UTF-16"
Only 'cos I didn't know any different...
Log file below

[log.header]: Opening log for Oolite version 1.72.2 (x86-32 test release) under Mac OS X Version 10.5.4 (Build 9E17) at 2009-01-31 13:28:14 +0000.
Machine type: MacBookPro4,1, 2048 MiB memory, 2 x x86 (Penryn) @ 2400 MHz.
Note that the contents of the log file can be adjusted by editing logcontrol.plist.

[rendering.opengl.version]: OpenGL renderer version: 2.0.0 ("2.0 NVIDIA-1.5.28")
Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce 8600M GT OpenGL Engine
[rendering.opengl.extensions]: OpenGL extensions (110):
GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_ARB_shader_texture_lod GL_EXT_compiled_vertex_array GL_EXT_framebuffer_object GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_depth_bounds_test GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_EXT_bindable_uniform GL_EXT_texture_integer GL_EXT_gpu_shader4 GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_point_sprite GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_blend_square GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_fog_distance GL_NV_depth_clamp GL_NV_multisample_filter_hint GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_ATI_texture_mirror_once GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod
[searchPaths.dumpAll]: ---> OXP search paths:
(
"/Oolite (v1.72.2)/Oolite/Oolite.app/Contents/Resources",
"/Oolite (v1.72.2)/Oolite/AddOns",
"/Users/chris/.Oolite/AddOns",
"/Users/chris/Library/Application Support/Oolite/AddOns",
"/Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE.oxp",
"/Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_A.oxp",
"/Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_B.oxp",
"/Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_C.oxp",
"/Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_D.oxp"
)
[dataCache.rebuild.explicitFlush]: Cache explicitly flushed with shift key. Rebuilding from scratch.
[shipData.load.begin]: Loading ship data...
[plist.parse.foundation.failed]: Failed to parse /Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_A.oxp/Config/shipdata.plist as a property list using Foundation. Retrying using homebrew parser. WARNING: the homebrew parser is deprecated and will be removed in a future version of Oolite.
XML parser error:
Unexpected character { at line 2
Old-style plist parser error:
Missing ';' on line 156

[plist.homebrew.parseError]: Property list isn't in XML format, homebrew parser can't help you.
[plist.parse.foundation.failed]: Failed to parse /Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_B.oxp/Config/shipdata.plist as a property list using Foundation. Retrying using homebrew parser. WARNING: the homebrew parser is deprecated and will be removed in a future version of Oolite.
XML parser error:
Unexpected character { at line 1
Old-style plist parser error:
Missing ';' on line 155

[plist.homebrew.parseError]: Property list isn't in XML format, homebrew parser can't help you.
[plist.parse.foundation.failed]: Failed to parse /Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_C.oxp/Config/shipdata.plist as a property list using Foundation. Retrying using homebrew parser. WARNING: the homebrew parser is deprecated and will be removed in a future version of Oolite.
XML parser error:
Unexpected character { at line 1
Old-style plist parser error:
Missing ';' on line 155

[plist.homebrew.parseError]: Property list isn't in XML format, homebrew parser can't help you.
[plist.parse.foundation.failed]: Failed to parse /Users/chris/Library/Application Support/Oolite/AddOns/YOUR_AD_HERE_set_D.oxp/Config/shipdata.plist as a property list using Foundation. Retrying using homebrew parser. WARNING: the homebrew parser is deprecated and will be removed in a future version of Oolite.
XML parser error:
Unexpected character { at line 1
Old-style plist parser error:
Missing ';' on line 155

[plist.homebrew.parseError]: Property list isn't in XML format, homebrew parser can't help you.
[script.load.world.listAll]: Loaded 6 world scripts: "oolite-cloaking-device" 1.72.2, "oolite-constrictor-hunt" 1.72.2, "oolite-nova" 1.72.2, "oolite-thargoid-plans" 1.72.2, "oolite-trumbles" 1.72.2, "Pi-Forty-Two Con stores"
[dataCache.willWrite]: About to write data cache.
[dataCache.write.success]: Wrote data cache.
[Pi-Forty-Two Con stores]: Adding constore with player launching from station
[script.addShips.failed]: SCRIPT ERROR in <anonymous actions> ***** CANNOT addShipsAt: 'constore 1 pwu 0.000000 0.000000 1.050000' (should be addShipsAt: role number coordinate_system x y z)

Closing log at 2009-01-31 13:28:35 +0000.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

delete the first line of shipdata.plist and write it your own and try again.
I do not have any experience at all with macs.

EDIT:
On second thoughts repeat the procedure described above and chose No to the question
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

As a passing comment, the line:

Code: Select all

defense_ship_role = pi42security;
in the constore's entry should have quotes around the role (the right hand part), and also lines like:

Code: Select all

smooth = "false"; 

and

Code: Select all

smooth = "true"; 
in various places may also cause interesting results as it could make the parser take something that should be boolean as a string.

Neither I think is the root cause of your problems (perhaps), but might be worth smoothing out in case others take this code as a source for the future.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Thargoid wrote:
others take this code as a source for the future.
When i finally got it to run under macs :lol:
Thanks Thargoid
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Ark wrote:
but since the Unexpected character { at line 1 is not unexpected at all and we had no similar problems in windows or unix i suspect that the edititor i am using (windows notpad) somehow manages to pass a hidden character or something and although windows and unix are immune macs can not recognize the shipdata.plist in all the sets.
No, that’s not it at all. Look again:

Code: Select all

XML parser error: 
Unexpected character { at line 1 
Old-style plist parser error: 
Missing ';' on line 155
The “Unexpected character { at line 1” is from the XML parser, but since the plist isn’t in XML format that’s expected. It’s the “Missing ';' on line 155” that’s the problem. (Usually this means there’s a missing semicolon on the non-empty line before line 155, because the error is reported where it first hits something other than a semicolon.)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Thargoid wrote:
As a passing comment, the line:

Code: Select all

defense_ship_role = pi42security;
in the constore's entry should have quotes around the role (the right hand part), and also lines like:

Code: Select all

smooth = "false"; 

and

Code: Select all

smooth = "true"; 
in various places may also cause interesting results as it could make the parser take something that should be boolean as a string.
Not really an issue – OpenStep format property lists don’t have a boolean representation. Oolite recognises the string values “true” and “false” (or “yes” and “no” or “on” and “off”) as representing booleans when a boolean value is expected. (The same is true for numbers. The only types actually represented in an OpenStep format plist are strings, arrays and dictionaries.)
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Ahruman wrote:
because the error is reported where it first hits something other than a semicolon.)
That other is something i can not see.
But why only in Macs? is my theory about an invisible character or something correct
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Ark wrote:
Ahruman wrote:
because the error is reported where it first hits something other than a semicolon.)
That other is something i can not see.
No, that “other” is normal plist code. For example:

Code: Select all

{
    thing = "banana"  // Missing semicolon here
    
    // Empty space
    
    other = "pear";  // Error occurs at beginning of this line, because it sees "other" while expecting a semicolon
}
But why only in Macs?
Because Macs use Cocoa to parse property lists, while other platforms use GNUstep. Their parsers work differently and are sensitive to different errors.
is my theory about an invisible character or something correct
Unlikely.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

@Ark - not using system Redux - but do have Diso.oxp installed - just happened to encounter this station at Diso - but I get 50fps whether in a high nebula/multi-planet system or not and 21fps when my FOV is lit up like a Christmas tree and is filled with the constore - I'm not unhappy - short of fighting a major battle in the vicinity of the constore I can live with the frame hit. One day (when my children are no longer taking up half my wages in childcare and are both in full-time school I will have enough funds to buy a better PC and all will be well and I will be even more happy!)

I'm tempted to boot up the XP partition and see what 1.72.2 plus this OXP looks like on that OS....

@Wackyman - thank-you. "Whelmed" is one of those oddities in English that is invariably only used with a prefix i.e. overwhelmed (which you don't actually need, because the word "whelmed" itself means submerged/overcome - underwhelmed clearly means therefore that I was complete NOT overcome by the flood of Mac users offering to support this oxp :wink: )

@Pangloss - the last wip oxp I had did not include the chicken - so I cannot tell you what it looks like on my system)
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Tivva
---- E L I T E ----
---- E L I T E ----
Posts: 279
Joined: Wed Sep 03, 2008 5:32 pm
Location: Right behind you in a cloaked Thargoid Warship prototype

Post by Tivva »

Ahruman wrote:
No, that’s not it at all. Look again:

Code: Select all

XML parser error: 
Unexpected character { at line 1 
Old-style plist parser error: 
Missing ';' on line 155
The “Unexpected character { at line 1” is from the XML parser, but since the plist isn’t in XML format that’s expected. It’s the “Missing ';' on line 155” that’s the problem. (Usually this means there’s a missing semicolon on the non-empty line before line 155, because the error is reported where it first hits something other than a semicolon.)
Ahruman, copy of lines 152-155 below.
Do you think it might be the missing comma at the end of line 154?
Wild guess- no coding skills....

Line 152 subentities = (
Line 153 "griff_no_normalmap_cobra_mkIII_front_gun 0 0 0 1 0 0 0",
Line 154 "griff_no_normalmap_cobra_mkIII_engine_fins 0 0 0 1 0 0 0"
Line 155 );
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Thanks Ahruman for the explanation!!

To all mac users that have the wip please locate inside the shipdata.plist of set_A (YOUR_AD_HERE_set_A.oxp\config) the line 154 under the DecalColor = { type = vector; value = "0.0588 0.6784 0.0"; };

Code: Select all

"yah_set_A_griff_station_top" = 
	{
	model = "yah_griff_station_top.dat"; 
	roles = "yah_set_A_constore_subent";
	smooth = "false";	
	shaders = 
		{ 
            "yah_griff_station_top.png" = 
			{ 
                vertex_shader = "ahruman-generic.vertex"; 
                fragment_shader = "yah_griff_station_top_section.fragment"; 
                textures = ("yah_griff_station_top.png", "yah_griff_station_paint_mask.png");
		    uniforms = 
				{ 
				uTime = "universalTime";
				hull_heat_level = "hullHeatLevel";	 				
				MainhullColor = { type = vector; value = "1.0 0.4 0.0"; };
				DecalColor = { type = vector; value = "0.0588 0.6784 0.0"; };
				}	
			}; 
		}; 
	};	
and put a ; after the }

the code after that must look like this

Code: Select all


"yah_set_A_griff_station_top" = 
	{
	model = "yah_griff_station_top.dat"; 
	roles = "yah_set_A_constore_subent";
	smooth = "false";	
	shaders = 
		{ 
            "yah_griff_station_top.png" = 
			{ 
                vertex_shader = "ahruman-generic.vertex"; 
                fragment_shader = "yah_griff_station_top_section.fragment"; 
                textures = ("yah_griff_station_top.png", "yah_griff_station_paint_mask.png");
		    uniforms = 
				{ 
				uTime = "universalTime";
				hull_heat_level = "hullHeatLevel";	 				
				MainhullColor = { type = vector; value = "1.0 0.4 0.0"; };
				DecalColor = { type = vector; value = "0.0588 0.6784 0.0"; };
				};	
			}; 
		}; 
	};
and repeate this to the other 3 sets (B,C &D)
Last edited by Ark on Sat Jan 31, 2009 3:25 pm, edited 1 time in total.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

There’s an identical error on line 350.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Obviously my count is not off :lol:
Thanks Ahruman. I will also correct the line 350
User avatar
Tivva
---- E L I T E ----
---- E L I T E ----
Posts: 279
Joined: Wed Sep 03, 2008 5:32 pm
Location: Right behind you in a cloaked Thargoid Warship prototype

Post by Tivva »

Ark
it works on a Mac
Hoorah


Image
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

@Tivva: did you also correct the error in line 350?. Plain curriocity :)
@Pangloss: is there a need for me to sent you a new wip? can you correct it yourself?
Last edited by Ark on Sat Jan 31, 2009 3:49 pm, edited 1 time in total.
Post Reply