Recent Posts

Pages: 1 ... 7 8 9 [10]
91
It seems I can stay connected there.

There's an awful lot of trains getting stuck wherever there's non-signal signalling in use though.
92
Pak128.Britain-Ex / Re: Demo game - signalling fix
« Last post by Vladki on October 16, 2017, 07:00:17 AM »
Splendid, thank you - now updated. I had to fix some errors with the LNER Tyneside EMUs that you had used in this game in place of the 2-BILs before publishing this version.
I used them as they are cheper to run and accelerate faster. But what was the problem with them?



93
So, the real solution would really be either to have a separate offset for each rotation

I think that would give artists the most amount of flexibility.
94
It just freezes, and it starts out at a random frame to begin with.
95
Hello, recently I went to make a change on the highway, (the same way the video added here) and the same problem occurred, the strange thing is that this mistake had already been solved, and was not happening in my game anymore. I am currently using Sim.exe 120.2.2 (Nightly r8128) pak128 2.5.2
Thank you very much in advance!
 :)
96
Pak128.German / Re: Screenshots of PAK128.german
« Last post by pumuckl999 on October 15, 2017, 11:35:34 PM »
At the moment it consumes sand, stones, wood and planks. But we did´nt know, if this is a good solution: Somebody could ask why it needs sand and planks. The mill is a lumber mill and in the background you can find a sandpit. It could produce its own sand and planks.

Here a blue 2ss-t/15-Wagon and an old railcar ET174, both for post. In background two Vossloh G2000BB with Zacens tank wagons (with different load images for different goods).

97
Pak128.Britain-Ex / Re: Demo game - signalling fix
« Last post by jamespetts on October 15, 2017, 11:23:58 PM »
Splendid, thank you - now updated. I had to fix some errors with the LNER Tyneside EMUs that you had used in this game in place of the 2-BILs before publishing this version.
98
Pak128.Britain-Ex / Re: New facotry smokes
« Last post by jamespetts on October 15, 2017, 11:11:36 PM »
The problem with this approach is what happens if anyone has specified the documented (but apparently deprecated) "smokspeed" parameter: it would be read as if it were the new parameter, which might cause unexpected behaviour. It would be preferable to use the smokepseed parameter, as it is useful to be able to specify this, or at least reserve this for future use.

As an example of how to implement a new version, look at the history of versions. For example, factory_reader.cc has:

Code: [Select]
if (version == 4)
{
// Versioned node, version 4 with sound and animation
desc->placement = (site_t)decode_uint16(p);
desc->productivity = decode_uint16(p);
desc->range = decode_uint16(p);
desc->distribution_weight = decode_uint16(p);
desc->color = decode_uint8(p);
desc->fields = decode_uint8(p);
desc->supplier_count = decode_uint16(p);
desc->product_count = decode_uint16(p);
if (extended)
{
desc->pax_level = 65535;
}
else
{
desc->pax_level = decode_uint16(p);
}
if (extended)
{
desc->electricity_proportion = decode_uint16(p);
desc->inverse_electricity_proportion = 100 / desc->electricity_proportion;

desc->upgrades = decode_uint8(p);

if (extended_version > 3)
{
// Check for incompatible future versions
dbg->fatal("factory_reader_t::read_node()", "Incompatible pak file version for Simutrans-Extended, number %i", extended_version);
}
}
desc->expand_probability = rescale_probability(decode_uint16(p));
desc->expand_minimum = decode_uint16(p);
desc->expand_range = decode_uint16(p);
desc->expand_times = decode_uint16(p);
desc->electric_boost = decode_uint16(p);
desc->pax_boost = decode_uint16(p);
desc->mail_boost = decode_uint16(p);
desc->electric_demand = decode_uint16(p);
if (extended && extended_version > 1)
{
desc->pax_demand = 65535;
desc->mail_demand = 65535;
desc->base_max_distance_to_consumer = decode_uint16(p);
}
else
{
desc->pax_demand = decode_uint16(p);
desc->mail_demand = decode_uint16(p);
desc->base_max_distance_to_consumer = 65535;
}
desc->sound_interval = decode_uint32(p);
if (extended_version >= 3)
{
desc->sound_id = decode_sint16(p);
}
else
{
desc->sound_id = decode_sint8(p);
}

DBG_DEBUG("factory_reader_t::read_node()", "version=4, platz=%i, supplier_count=%i, pax=%i, sound_interval=%li, sound_id=%i", desc->placement, desc->supplier_count, desc->pax_level, desc->sound_interval, desc->sound_id);
}
else if(version == 3) {
// Versioned node, version 3
desc->placement = (site_t)decode_uint16(p);
desc->productivity = decode_uint16(p);
desc->range = decode_uint16(p);
desc->distribution_weight = decode_uint16(p);
desc->color = decode_uint8(p);
desc->fields = decode_uint8(p);
desc->supplier_count = decode_uint16(p);
desc->product_count = decode_uint16(p);
if(extended && extended_version > 1)
{
desc->pax_level = 65535;
}
else
{
desc->pax_level = decode_uint16(p);
}
if(extended)
{
desc->electricity_proportion = decode_uint16(p);
desc->inverse_electricity_proportion = 100 / desc->electricity_proportion;

if(extended_version >= 1)
{
desc->upgrades = decode_uint8(p);
}
else
{
desc->upgrades = 0;
}
if(extended_version > 4)
{
// Check for incompatible future versions
dbg->fatal( "factory_reader_t::read_node()","Incompatible pak file version for Simutrans-Extended, number %i", extended_version );
}
}
desc->expand_probability = rescale_probability( decode_uint16(p) );
desc->expand_minimum = decode_uint16(p);
desc->expand_range = decode_uint16(p);
desc->expand_times = decode_uint16(p);
desc->electric_boost = decode_uint16(p);
desc->pax_boost = decode_uint16(p);
desc->mail_boost = decode_uint16(p);
desc->electric_demand = decode_uint16(p);
if(extended && extended_version > 1)
{
desc->pax_demand = 65535;
desc->mail_demand = 65535;
desc->base_max_distance_to_consumer = decode_uint16(p);
}
else
{
desc->pax_demand = decode_uint16(p);
desc->mail_demand = decode_uint16(p);
desc->base_max_distance_to_consumer = 65535;
}
DBG_DEBUG("factory_reader_t::read_node()","version=3, platz=%i, supplier_count=%i, pax=%i", desc->placement, desc->supplier_count, desc->pax_level );
} else if(version == 2) {

(and so on): each of those "else if(version == X)" blocks of code specifies what data need to be read in what order for each different version. If you change the version, you will need to make an additional block of code along these lines and add the extra data that you want to be read. You will also need to change the version in makeobj. Note, however, that you should really change the Extended version if you are making this code just for Extended rather than also for Standard, but you should change the main version if you are intending the same code to work for both.
99
Splendid, thank you: I have incorporated the changes.

As to the taxiway speed, this does need to be realistic, or else airport turnaround times will be unrealistically short. On the basis of Vladki's research, however, I have increased the speed of the best taxiways from 20km/h to 32km/h. Aircraft will always prefer the runway to the taxiway in the present routing system unless the taxiway has the same speed limit, which is obviously not realistic.
100
does the animation of factory just freeze, or is it reset to 1st frame? If the latter, then jsut make the 1st frame of smoke clear.
Pages: 1 ... 7 8 9 [10]