In need of professional help

Advanced game related topics
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

In need of professional help

Post by Pot Noodle »

Hi guys,
I am struggling with the game i have been working on for some time now.
I am looking for someone to try and sort out a problem i have
implementing drift on corners, i have had it working but with a problem.
if anyone has the time to look at my code and help i would be grateful.

Regards
P.N.
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

Re: In need of professional help

Post by Pot Noodle »

This forum never fails to disappoint, not one reply suggestion or comment.

Thanks for the time taken to read it at least that's one thing i guess.

:x
P.N.
Fred
Administrator
Administrator
Posts: 18224
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: In need of professional help

Post by Fred »

Well, if no one has a solution or tip, what's the point to post an answer ? No need to be angry about it.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: In need of professional help

Post by IdeasVacuum »

I think you need to give more info Pot Noodle - at the moment, your description is a bit vague and you give the impression that all of your code needs review, without indicating just how much code that is - so, not sure about others but my first thought was "sounds like it will take a lot of hours". Time is something that most developers don't have. :)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
marc_256
Addict
Addict
Posts: 842
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: In need of professional help

Post by marc_256 »

Pot Noodle,

Is it a 2D or 3D game ?
OGRE or not ?
Canvas or Screen mode ?

...

Marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: In need of professional help

Post by Thade »

Pot Noodle wrote: if anyone has the time to look at my code and help i would be grateful.

Regards
I suggest that after that statement, everybody who wants to help is waiting for the code ... where is it?
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

Re: In need of professional help

Post by Pot Noodle »

First off let me apologize for my comment, it's not like me but i think this project of mine
is a bit more than i bargained for.

when you are writing something and you get stuck and your not sure how to put the problem
in to words it's very hard to explain, just as hard to fix as well, so forgive me :oops:

As for the game problem it is a 2D rep of the old Amiga XJ220 car game and the problem i have
is a pause with this line of code

Code: Select all

jPlayerX - (jSpeed*(BottomSegDX)*3.0)
The car is supposed to go into a corner and drift depending on the speed it is going.
but this one works but with a pause just as it goes in to the corner.
a car would go off road if you did not turn the corner, mine pauses for a second and then goes off road.
I hope i have summed it up ok, here is the game/code.

https://dl.dropboxusercontent.com/u/71849177/XJ220.rar
P.N.
True29
User
User
Posts: 64
Joined: Sun Feb 03, 2013 1:50 am

Re: In need of professional help

Post by True29 »

Hey , its hard to find such bugs for other people.
The best way is to find by your self :(

Have you found the bug ?
greets.
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

Re: In need of professional help

Post by Pot Noodle »

I think the BUG is down to (jSpeed/2) in this bit of code.

Code: Select all

NewSegZ - (jSpeed/2);    <--     BUG Remove "/2" and no more pause
  ;
  If NewSegZ < = 0.0;            NewSegZ never = 0, always < than 0, "-7.000" this could be the pause
    ;
    BottomSegDX = NewSegDX
    ; 
    NewSegZ = jZMap(ROAD_LINES)
    ; 
    Select jTrackData(Random(2))
      Case 0 : NewSegDX = 0
      Case 1 : NewSegDX = fDX
      Case 2 : NewSegDX =-fDX
    EndSelect
  EndIf
If it was just "NewSegZ - jSpeed" then NewSegZ would = 0 and it would update 2 or 3 frames earlier
The down side to this is the road curves to fast.
P.N.
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

Re: In need of professional help

Post by Pot Noodle »

Still no luck with this problem, having tried everything i can think of.
Don't think it's a bug in the code i just think it needs more code to do the job.
:cry:
P.N.
Pot Noodle
Enthusiast
Enthusiast
Posts: 202
Joined: Sat Feb 18, 2012 10:21 pm
Location: Leicestershire

Re: In need of professional help

Post by Pot Noodle »

I was wondering if someone could test this for me and give feedback.
I still think it needs work.
Thanks

https://dl.dropboxusercontent.com/u/718 ... _XJ220.exe
P.N.
marc_256
Addict
Addict
Posts: 842
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: In need of professional help

Post by marc_256 »

Hi,

Tested, WIN8 x64.

Works well, but ...

- There are some turns who takes a long time (i mean more than 360 deg) what seems to be unlogic if I not cross the road again)
- With the same turns, the background is not following the rotations / direction of the car.

Good work.

Marc
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: In need of professional help

Post by flaith »

Pot Noodle wrote:I was wondering if someone could test this for me and give feedback.
I still think it needs work.
Thanks

https://dl.dropboxusercontent.com/u/718 ... _XJ220.exe
Hi Pot Noodle,

I tried to play with it, but which are the keys I need to use ?
“Fear is a reaction. Courage is a decision.” - WC
marc_256
Addict
Addict
Posts: 842
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: In need of professional help

Post by marc_256 »

Hi flaith,

For what I found ...

Mouse Left/Right = Car rotation
Mouse button left = accelerate
Mouse button right = Breaks

Marc,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: In need of professional help

Post by flaith »

:D Thanks Marc

So I tried and didn't find any bug

Well done btw :wink:
“Fear is a reaction. Courage is a decision.” - WC
Post Reply