• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 09:57:56 AM

News:

GP Bikes beta21c available! :)


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 - PiBoSo

142
General Discussion / GP Bikes beta4b
December 17, 2013, 09:20:38 PM
GP Bikes beta4b released: http://www.gp-bikes.com/?page=downloads

Changelog:
fix: autoshift
fix: helmet shadow
fix: temporary bike
fix: replay exit bug
143
Physics / Maybe no one noticed...
December 16, 2013, 11:08:36 AM

... but starting with Beta4 all physics files are unencrypted.
So if you are not happy with the contents, please note there is the possibility to add all the bikes you want.

Scooters anyone, pretty please?



144
General Discussion / World Racing Series beta4
December 15, 2013, 10:55:37 PM
World Racing Series beta4 released:
http://www.worldracingseries.net/?page=news
145
General Discussion / GP Bikes beta4
December 15, 2013, 11:14:52 AM

GP Bikes beta4 released:
http://www.gp-bikes.com/?page=news
146
Plugins / Input Plugins
December 15, 2013, 10:39:25 AM
It is possible to write a DLL that sends input data to GP Bikes.

The interface can be downloaded at: http://www.gp-bikes.com/?page=downloads

Please note that all function calls are blocking, so control should be returned to simulation as soon as possible to avoid framerate issues.

The plugin must have the file extension renamed to DLI and it must be copied to the "gpbikes/plugins" directory in GP Bikes installation folder.
147
General Discussion / Old forum
December 13, 2013, 11:03:25 PM

Is there something in particular that could be useful to recover from the old forum?
148
General Discussion / GP Bikes release1 WIP
December 13, 2013, 08:50:27 PM
Rider.
149
Plugins / Proxy plugin
June 06, 2013, 08:32:42 PM
Opening the memory-mapped file GPBProxyObject
g_hMapFile = OpenFileMapping(FILE_MAP_READ,FALSE,"Local\\GPBProxyObject");
void *pBuf = MapViewOfFile(g_hMapFile,FILE_MAP_READ,0,0,sizeof(SProxyData_t));
external programs can read GP Bikes output data.

The source code and data structure is available here: http://www.gp-bikes.com/downloads/gpb_proxy.c
150
Plugins / Output plugins
June 06, 2013, 08:06:33 PM
It is possible to write a DLL that receives data from the simulated bike in realtime.

Example source code can be downloaded at http://www.gp-bikes.com/?page=downloads

Please note that all function calls are blocking, so control should be returned to simulation as soon as possible to avoid framerate issues.

The DLL must be compiled for 64 bit.

The plugin must have the file extension renamed to DLO and it must be copied to the "gpbikes/plugins" directory in GP Bikes installation folder.

NOTE: a license is not needed to add plugins.
151
Documentation / Direct steer
April 28, 2013, 08:53:11 PM
To directly control the torque applied to the handlebars, edit profile.ini and add:
[hardcore]
directsteer=1
directsteer_maxtorque=30
directsteer_maxtorque2=0.5

Use negative values to invert the forces.
The second torque scales with speed and then is added to the first one.


Since Beta17, GP Bikes automatically reads the file "directsteer.cfg" from the bike folder.
If the file is missing, the default parameters are used.
Example file:
angle
{
 P = -250
 D = -40
}
torque
{
 threshold_velocity = 3
}
The "angle" section sets the parameters for direct angle control, used at low speed.
Steer control switches to direct torque above "threshold_velocity".


Please make sure to disable the automatic dab, that doesn't work correctly with direct steer: https://forum.piboso.com/index.php?topic=15.msg96471#msg96471
152
Documentation / Dedicated server
March 20, 2013, 08:08:35 PM
To start a dedicated server, launch gpbikes.exe with the following params:
gpbikes.exe -dedicated (port number) [-set params (config_file)]

for example:
gpbikes.exe -dedicated 54310 -set params dedicated.ini


NOTE: if a client runs on the same PC, port 54310 cannot be used.


Configuration file must be in installation path, under "gpbikes" folder.
If not set "server.ini" is used.

Format:
[connection]
name =
maxclient =
password =
admin_password =
bandwidth = ; 0 -> very low, 1 -> low, 2 -> medium, 3 -> high, 4 -> very high
max_ping =
whitelist = ; the filename of the whitelist
blacklist = ; the filename of the blacklist
polls_disable = ; if set to 1, polls are disabled
location = ; information about server location
MOTD = ; message of the day

[export]
results =  ; "html", "xml" or "both". If set it will automatically export results at the end of the race
directory = ; the directory where results will be saved ( must exist )
units =  ; 0 -> metric units, 1 -> US units, 2 -> UK units
prefix = ; filename prefix of results
incremental = ; 0 or 1. If set to 1, results are exported at the end of each session
contacts = ; 1 -> contacts between bikes are added to the XML export, 2 -> contacts with walls are exported, too

[replay]
save = ; 0 or 1, If set to 1 it will automatically save the full replay at the end of the race
directory = ; the directory where replays will be saved ( must exist )
prefix = ; filename prefix of replays

[event]
name = ; the name of the event ( optional )
track = ; track ID ( the track folder name, for ex. Victoria ). If no track is found, then it is searched in the full names ( for ex. Assen to match "Assen 2005" )
track_layout = ; track layout ( for ex. Short ). Empty -> Default. If "track" is used to search in the full names, then "track_layout" is used as a second filter ( for ex. 2005 to choose between different versions of Assen )
track_paint = ; track paint file name ( without the PNT extension ). Empty -> Default
category = ; bike category allowed. Empty -> Open. Multiple categories can be set with a slash in between. For example: M2/GP500
allowed_bikes = ; list of ID of allowed bikes, separated by a slash. For example: schwaben_m2_18/varese_v594

[rating]
class = ; A -> 2000+, B -> 1600-1999; C -> 1200-1599; D -> 800-1199

[weather]
realistic = ; 0 or 1, if set to 1, following params are ignored
conditions = ; 0 -> sunny, 1 -> cloudy, 2 -> rainy
temperature = ; air temperature, celsius
wind_direction = ; 0 -> north, 1 -> north-east, 2 -> east, ..., 7 -> north-west
wind_speed = ; meters/second
track_conditions = ; 0 -> dry, 1 -> wet

[hardcore]
force_cockpit = ; 0 or 1
no_aids = ; 0 or 1
limited_tyre_sets = ; 0 or 1

[race]
testing_day = ; 0 or 1, if set to 1, the following race settings are unused
quick_race = ; 0 or 1. If set to 1, practice, warmup, sighting lap and warmup lap are skipped
practice_length = ; minutes
qualify_length = ; minutes
warmup_length = ; minutes
sighting_lap = ; 0 or 1
warmup_lap = ; 0 or 1
race_length = ; % of full length
race_use_laps = ; 0 or 1. If set to 1, race_laps is used instead of race_length
race_laps = ; number of race laps
restart_delay = ; server restart time in seconds. The default is 300, 5 minutes. If set at zero, there is no restart

pause = ; 0 or 1. If set to 1, the event is paused and saved at the end of "pause_session"
pause_session = ; practice, qualify, warmup or race
pause_directory = ; the directory where data is saved. The default is "resume"
resume = ; the file to load to resume an event
save = ; 0 or 1. If set to 1, the event is saved at the end of "save_session". If "pause" is set, this setting is ignored
save_session = ; practice, qualify, warmup or race
save_directory = ; the directory where data is saved. The default is "resume"

[live]
enable = ; 1 or 2 to enable live timing. If set to 1, data is sent through UDP packets ( more info: https://forum.piboso.com/index.php?topic=5419.0 ). If set to 2, data is written to a local file
port = ; the UDP port ( only used with "enable = 1" )
password = ;  ( only used with "enable = 1" )
file = ; the name of the file to write  ( only used with "enable = 2" )
track_position = ; 0 or 1. If set to 1, the track centerline and the position of all bikes are written, too ( only used with "enable = 2" )
contacts = ; 1 -> contacts between bikes are written, 2 -> contacts with walls are written, too ( only used with "enable = 2" )

[remote_admin]
enable = ; 1 to enable remote admin ( more info: https://forum.piboso.com/index.php?topic=9652.0 )
port = ; the UDP port. If missing or set to 0, port 54230 is used
password =

[dynamicsurface]
disable = ; 0 or 1. If set to 1, the dynamic track surface is disabled
persistent = ; 0 or 1. If set to 1, the dynamic track surface is not reset between events

[polls]
disable_during_races = ; 0 or 1. It set to 1, polls are disabled during races

[log]
file = ; the name of the file to write the dedicated server output to

NOTE: To minimize join lag, please make sure to restrict the allowed bike categories as much as possible

You can set up to 9 additional tracks, in the "events" section:
track2=
track2_layout=
track2_paint=
track3=
track3_layout=
track3_paint=
...
...
track10=
track10_layout=
track10_paint=
The server will move to the next at each restart and wrap to the first after the last.
The same track and layout can be repeated multiple times in the 10 "slots".

The whitelist and blacklist are a text file using the following format:
[entry0]
guid = ........

[entry1]
guid = ........

[entry2]
guid = ........
The GUID can be read in the "Profiles" page.
Whitelist only: it is possible to set, for each entry, the race number, the name, a prefix to the name ( for example a team "tag" ) and the bike.
Also, it is possible to set a custom string, up to 18 character long, that is added to the XML results export and to the live timing data.
[entry0]
guid = ........
race_number = ...
name = ...
name_prefix = ...
bike_id = ...
extra = ........

In the dedicated server text input, it is possible to type text that will be sent to the connected clients. It can be a personal message: https://forum.piboso.com/index.php?topic=9942.msg109763#msg109763
It is also possible to send commands: https://forum.piboso.com/index.php?topic=9942.msg109764#msg109764
Additional commands:
- "!restart" to reset the server
- "!whitelist update" to reload the whitelist file
- "!blacklist update" to reload the blacklist file
- "!admin" followed by client's name ( or #race number) to promote a client to admin
Text can be sent to the dedicated server from remote, too: https://forum.piboso.com/index.php?topic=9652.0


NOTE: a license is not needed to start a dedicated server.
153
Documentation / Extract data from installer
February 24, 2013, 08:29:19 PM
If you don't like installers or if you need to access the original data ( maybe to replace corrupted files ), it is possible to extract data from the installer.
Run the installer adding "-extract" to the command line.
154
Documentation / Extract data from installer
February 24, 2013, 08:28:54 PM
If you don't like installers or if you need to access the original data ( maybe to replace corrupted files ), it is possible to extract data from the installer.
Run the installer adding "-extract" to the command line.
155
Plugins / Input plugins
February 17, 2013, 06:52:20 PM
It is possible to write a DLL that sends input data to World Racing Series.

The interface can be downloaded at: http://www.worldracingseries.net/?page=downloads

Please note that all function calls are blocking, so control should be returned to simulation as soon as possible to avoid framerate issues.

The plugin must have the file extension renamed to DLI and it must be copied to the "wrs/plugins" directory in World Racing Series installation folder.
156
Plugins / Proxy plugin
February 17, 2013, 06:47:59 PM
World Racing Series integrates a "proxy" plugin.

Opening the memory-mapped file WRSProxyObject

g_hMapFile = OpenFileMapping(FILE_MAP_READ,FALSE,"Local\\WRSProxyObject");
void *pBuf = MapViewOfFile(g_hMapFile,FILE_MAP_READ,0,0,sizeof(SProxyData_t));

external programs can read World Racing Series output data.

The source code and data structure is available here: http://www.worldracingseries.net/downloads/wrs_proxy.c
157
Plugins / Output plugins
February 17, 2013, 06:19:35 PM
It is possible to write a DLL that receives data from the simulated car in realtime.

Example source code can be downloaded at http://www.worldracingseries.net/?page=downloads

Please note that all function calls are blocking, so control should be returned to simulation as soon as possible to avoid framerate issues.

The DLL must be compiled for 64 bit.

The plugin must have the file extension renamed to DLO and it must be copied to the "wrs/plugins" directory in World Racing Series installation folder.

NOTE: a license is not needed to add plugins.
158
Documentation / Telemetry
February 17, 2013, 06:05:38 PM
World Racing Series automatically generates telemetry data. The output file is named logdata.csv and can be found in "My Documents"/PiBoSo/World Racing Series/
It is a comma-separated values text file, that can be imported into any spreadsheet.
If you want to have more control create a text file in installation directory called telemetry.ini, with the following structure:

[params]
disable = 0
min_time = 40
delay = 5
sample_rate = 20
unique_filename = 0
data_maxsize = 8000000

disable: set it to 1 if you don't need telemetry
min_time: seconds. A run shorter than this value is not saved to disk
delay: the first 'delay' seconds are not saved
sample_rate: sampling rate
unique_filename: if set to 1 it will save a different file for each run ( WARNING: uses a lot of disk space )
data_maxsize: the buffer size for telemetry data, in bytes. With default value it will save 9000 seconds of data at 10hz
159
Documentation / Telemetry
February 17, 2013, 05:57:13 PM
GP Bikes automatically generates telemetry data. The output file is named logdata.csv and can be found in "My Documents"/PiBoSo/GP Bikes/
It is a comma-separated values text file, that can be imported into any spreadsheet.
If you want to have more control create a text file in installation directory called telemetry.ini, with the following structure:

[params]
disable = 0
min_time = 40
delay = 5
sample_rate = 20
unique_filename = 0
data_maxsize = 8000000

disable: set it to 1 if you don't need telemetry
min_time: seconds. A run shorter than this value is not saved to disk
delay: the first 'delay' seconds are not saved
sample_rate: sampling rate
unique_filename: if set to 1 it will save a different file for each run ( WARNING: uses a lot of disk space )
data_maxsize: the buffer size for telemetry data, in bytes. With default value it will save 9000 seconds of data at 10hz
160
Documentation / core.ini
February 17, 2013, 05:15:03 PM
To increase compatibility with Windows, all data is saved under "My Documents"\PiBoSo\GP Bikes\
If you prefer to have everything saved in installation folder, edit core.ini file ( located where GP Bikes is installed ) and set compatibility to 0:

[windows]
compatibility=0


If you have a multi-monitor setup and want to output to a monitor that is not the primary one, add the following lines to core.ini:

[display]
monitor=2