• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 08:10:46 PM

News:

World Racing Series beta14 available! :)


Project Realistic Rig

Started by speedfr, December 08, 2017, 02:10:31 PM

Previous topic - Next topic

doubledragoncc

I use a 40inch flatscreen TV and only 1080p but love it for GPB if not doing vr. I have an Asus Strix 1060 OC at 2000mhz and works a dream for most BUT Star citizen wont run for shite, crashes all the time and terrible fps. I run full Asus ROG system with 16GB 4000mhz memory and my problem is i5 7600 4800mhz but SC dont like it since 3.0 release, 2.6 ran great but now it is just a pain so if you want to run SC in even 1080p make it a gtx1080 and i7 7700 at least to play it at all and put it on a SSD as it takes years to load from normal HD.

Thought it best to say speedy as hating SC right now lol. The 40inch is perfect for 1p riding as the bike is the right size. It is also great for my design work.

btw my screen cost £200 new and is 200hz no only 60hz like most. Here in UK can get Ultra HD 4k 40inch for £399 and probably less just did a quick glance on ebay to see

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 12700K 5.1GHz Z690 ASUS Strix Z690-A Mobo 32GB 3600MHz DDR4 RAM ASUS Strix RTX3080 OC 10GB DDR6X ASUS Ryujin 360 AOI Cooler ROG Thor 1200w PSU in ROG Helios Tower Case.

speedfr

April 15, 2018, 02:32:35 PM #76 Last Edit: April 15, 2018, 02:34:24 PM by speedfr
Hi DD,

i know bigger is better (!!) but as i saw on my kids screen, working on a TV is a kill for the eyes otherwise i would have stolen the main TV screen but wifey will kill me as well...
No, i need a working screen too. Where i can spend hours on Excel and Word. Same for Cura and Sketchup.
And my work is to make gaming computer, including WC and other so i know what to use for a video card the only thing is, i'm not gonna put 600 fuc*$%g € in a video card, that's way too much.
About Star Citizen, we still are on 3.1, fps increased quiet a bit since 3.1 but i'm tired of redoing my xml files each time for my Hotas so i'll wait for SQ42, dreaming of my youth with Wing Commander or Starlancer taste still in my mind.

And, my rig works great. Perfect. I have to say that its very natural and great to ride, rear braking and clutching is a great plus. But the lack of information from the leaning is horrible.
So, and i know you are kind of "against" that, but i'm gonna disassembly a old FFB steering wheel in order to put FFB on my leaning axis, that way the steering head will be linked as a "Logitech/Microsoft/Thrusmaster" wheel using the FFB inside and the rest will be Leo Bodnar.
I have to work on that and find out is i need to change the potentiometer or maybe have bigger demultiplication because a handlebar is a lot longer than a wheel and the moment of force applied is almost 3 times bigger.

I've been spending time on trying to find out how to catch FFB information from the software and then translating that to an Arduino to monitor a DC motor but it's quiet hard to execute, i think for a few € i can find a used FFB wheel and then operate it !!
I'll come back with more asap.

Have a nice sunday guys, in here, finally, Spring is coming after 5 month of rain !!
Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

h106frp

You need a dll to link into GPB (dlo) and place the data in memory (the easy bit surprisingly, you can do it with codeblocks C) then some sort of host PC application to send this data to the arduino at a decent rate.

The host application also lets you scale the values, range check and limit (a must if you do not want the bars going berserk) and the ability to drive other stuff like a dash. I used microchip PIC and USB.

speedfr

April 15, 2018, 03:10:25 PM #78 Last Edit: April 15, 2018, 03:17:13 PM by speedfr
Thank you mate, that's what i understood from the few things i found about it.

But my level in coding is absolutely minimal (more a mechanical than a dev guy) so this part is going to be a nightmare for me.
I have a "Genius" friend that swim like a fish into that but once more, i don't want to bug or depend on somebody so i'll try to steal a FFB system and make it work with my stuff, if it doesn't work, i'll be coming to you, don't worry !!
It will be the same for my own custom frame, i'll ask a specialist to do me a nice black and yellow painting with #40 on it. (not a Hornet, a Bee !!).

Anywat what "host application" are you talking about ?
I found a RFR Wheel configuration actually and it might be that, no ?

Here (this guy makes everything with almost nothing, i'm impressed !! )

https://www.youtube.com/v/Snbkv_mvt8Q

Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

h106frp

This is the info I had when i started for the DLL part, link this with the info in the demo dll from PB and you should be able to make a unique formatted data block in memory that you can read from with the host app. :)

opensource codeblocks c http://www.codeblocks.org/

Hi all,

I based my work on the clever use of the string tables that Pharoseer discribed in his post "Making a DLL with C++ Express" : http://forum.thegamecreators.com/?m=forum_view&t=165006&b=18

I reduced as possible the steps needed to create a DLL using Code::Blocks (MinGW compiler).

I won't write a full tutorial, The GameCreators already did it, so before to go further please read carefuly The Third Party Commands topic you'll find into the help file of DBP (Technical Documents Section).


So, I assume you are familiar with the process and the explanations regarding the creation of a DLL using Visual C++ ; things are a bit different using Code::Blocks but it will be quite easy using the following steps :

(Note : for this example I used the last official version of Code::Block v8.02 including MinGW)


1) Create a DLL project

- Launch Code::Blocks
- Click on "Create a New Project"
- Click on "Dynamic Link Library"
- Let's give a name to our DLL project e.g. "TestDLL" (a new folder with the same name will be created into the Code::Blocks' Projects folder)
- Click on "Next" then "Finish" buttons to complete the project creation.

Now the "Projects" tab displays the name of our project ("TestDll") with 2 items : "Sources" and "Headers"


You'll notice that the Wizard's DLL creation tool has created some code as a default example, but let's make our own instead :

- Open the "Headers" tree then Right Click on the file named "main.h" and select "Remove file from project" : the "Headers" tree has been removed.
- Open The "Sources" tree and edit the "main.cpp" to remove all the code ((CTRL+A) then DELETE). Now we have got a blank page.


2) Write some functions in our DLL

Copy the code below (which contains 2 simple fonctions) in our "main.cpp" file.

main.cpp
+ Code Snippet

#include <windows.h>

#define EXPORT __declspec (dllexport)


EXPORT int Square( int X) // Return Square
{
    return X*X;
}

EXPORT int Cube( int X) // Return Cube
{
    return X*X*X;
}




3) Configure the project's properties to create a .DEF file

This file will allow us to get automatically the complete list of the functions of the DLL in their decorated form.

- In the "Projects" tab, Right Click on the project name "TestDLL" and select "Properties..."
- Click on the "Build targets" tab and check that the option "Create .DEF exports file" is selected.
- When done click on the "OK" button to proceed.


4) Build our DLL (CTRL+F9)

The DLL we created can't be used "as this" from DBP but this step will help us to obtain complementary informations to build the final one because the .def file was created.


5) Create a String Table in a Resource File

- Create a new empty text file into the "TestDLL" folder (located in the Code::Blocks' Projects folder) and rename it as "TestDLL.rc" (this is a Resources file).
- Open the "....Projects\TestDLL\bin\Debug" folder.
- Use Notepad to open the file "libTestDLL.def" which contains the full list of our functions in their decorated form.

libTestDLL.def
+ Code Snippet

EXPORTS
    _Z4Cubei @1
    _Z6Squarei @2



- Go back to Code:Blocks
- In the "Projects" tab, Right Click on the project name ("TestDLL") and select "Add Files..."
- Select the file "TestDLL.rc" you just have created.
- When asked for "Multiple Selection", click on "Select All" then "OK" buttons : you just added the Resources file to the Project.
- Open the "Resources" tree then double click on the name "TestDLL.rc" to edit the file.
- Copy the code below in the Resource file. As you can see, this code contains the decorated form of the functions we previously found into the .def file.

Stringtable
+ Code Snippet

STRINGTABLE
{
1       "CUBE[%LL%_Z4Cubei%"
2 "SQUARE[%LL%_Z6Squarei%"
}




6) Build the final version of the DLL (CTRL+F9)

7) Copy the file "TestDLL.dll" located into "....\Projects\TestDLL\bin\Debug" into the "plugins-user" folder of DBP (....Dark Basic Professional\Compiler\plugins-user).

8) Test our functions from DBP :

DBP Code
+ Code Snippet

I=Square(4) : Print "4*4 = ",I
I=Cube(4) : Print "4*4*4 = ",I
Wait Key




Of course you can create your DLL in release mode (Properties --> Build targets Tab)


I hope this will help.

speedfr

That's great info that h106frp, i'll have a look at it.

Thank you.  :)

And @DD, adding a FFB on the leaning axis will be a great update for your HSx system, if it becomes not too difficult, that could increase a lot the clients for you since that's exactly what we need to "feel" the bike. And this lack of feeling is really loosing me. Maybe am i too perfectionnist, i'll see...
Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

h106frp

Just found this on my backup drive  :) , the codeblocks DLL project. It will probably need the declarations updating to the current PB b13 DLL template from the GPB downloads area

Might give you a start though

https://drive.google.com/file/d/19eDOmZfkW7ldKOH-O2g-JYJa5VLPxXcU/view?usp=sharing

speedfr

I run dl that and have a look at all of that.

On one side, there's the programming and electronics while on the other side, there's adaptation and mechanics.
At first, i'll go to the second.
But since i have archives about it now, i might go for the first choice.
Need to understand at first.

Thanks again h106frp, that's really really nice of you.

Ps : Video about my realisation is uploading to YT and be posted in here asap. It's dedicate to DD.  ;D

Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

speedfr

Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

doubledragoncc

Great video speedy. Thank you for the very kind words and support. Very good work you have done. I use 100% direct lean to get better control of the bike btw

I do want to have FFB it is just a cost issue for now. I wanted to get hydraulic brakes done first so now can think about FFB. I want to find a way so I can add it to all systems for old customers and not just new ones so that is part of the problem but have some idea how to do it, just have to get it all figured out lol.

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 12700K 5.1GHz Z690 ASUS Strix Z690-A Mobo 32GB 3600MHz DDR4 RAM ASUS Strix RTX3080 OC 10GB DDR6X ASUS Ryujin 360 AOI Cooler ROG Thor 1200w PSU in ROG Helios Tower Case.

Hawk

Looking goood Speedy! Nice job mate! ;) 8)

speedfr

Thank you guys.  :)

And yes, DD, that was for your eyes mostly, to check that your babies are well treated...  ;D

And i'm going to "re" try a FFB sterring wheel to understand what was making this way of leaning so great and efficient.
Better that a joystick.
And more smooth and controlable than my handlebar.

Because what i think last time i tried, is that actually FFB effect was off on GP Bikes and only the fact that "basic" FFB was on, meaning the come back to the center position.
And that centering forces against you constantly. Giving you something to counter-steer and at the same time, avoiding the handlebar to wiggle left and right, making me loose the benefit of a handlebar position as on my bike.
A little bit as a steering damper but this element smooth the mouvement but doesn't force against you, just making the movement more linear.

If its what i "feel" then FFB is not necessary. Springs are theoricaly enough, except they don't force on a linear way and tiny force at beginning, big at the end so it's not springs the solution. I've tried a lot of them, different position, deifferent diameter of steel, all kinds of solutions, its not as it was with the steering wheel + FFB minimum that i recall in my mind.

I'll try tonight with the one i'm stealing and then i'll have my answer.

If its "just" a matter of having a DC motor forcing against my arms to take it back to middle position, i guess that's a lot easier to execute then a real FFB device.
Need a encoder to read the angle, a DC motor, a little electronic basic to rules the motor, probably a old Power Supply for computer and the bigger work will be to calculate the gearing for the reduction. Or go with a belt.
Well, it's not finished but yeah, it's coming !!!
(the real thing will be to have hard time leaning as i brake in curve, as in reality and that's really troubling me that when i brake and lean, it's not harder to do, i'd like to be seating there, and have the same feelings... The Graal !!! )

Oh, and DD you're right, i did put 100 direct lean and it's way easier at least with a handlebar.



Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC

doubledragoncc

There are many things happening now I can not talk about yet but the motorcycle simulation industry is going to change this year. Keep being inventive and positive. It gonna get real.

DD
GPBOC Live Streams: https://www.youtube.com/c/IASystemsComputerControls; i7 12700K 5.1GHz Z690 ASUS Strix Z690-A Mobo 32GB 3600MHz DDR4 RAM ASUS Strix RTX3080 OC 10GB DDR6X ASUS Ryujin 360 AOI Cooler ROG Thor 1200w PSU in ROG Helios Tower Case.

damonboss


speedfr

Quote from: doubledragoncc on April 16, 2018, 06:41:17 PM
There are many things happening now I can not talk about yet but the motorcycle simulation industry is going to change this year. Keep being inventive and positive. It gonna get real.

DD

NDA ?  with Gren.... sniffing it.... ;D


Quote from: damonboss on April 16, 2018, 06:43:41 PM
smoking bad

???? :o
Missing Gp500 (Microprose)  Testing EDTracker Pro on YT   R7-3800X/32Go/RX6800/1440p/Full WC