Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / player can travel through walls of map.

Author
Message
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 22nd Oct 2010 20:40
I have loaded my fps map in darkbasic but the player can go through the walls and objects, how can you fix this?
CoffeeGrunt
18
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 22nd Oct 2010 22:45
Program collision, why ask in the FPSC forums when it's a DBP issue?

MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 23rd Oct 2010 14:31
well i created the map in fpsc and thought it might have something to do with that.

thanks for the input anyway!
CoffeeGrunt
18
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 24th Oct 2010 00:00
Nahh, you'll have to set up collision systems for your player movement, the noclip you're experiencing is just the same movement without gravity and world collision...

Bigsnake
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 24th Oct 2010 00:16 Edited at: 24th Oct 2010 00:19
I can help with the Issue although it should be in the DB section, now you said you use DarkBasic so I don't know if you have the orig or the proffesinal version but in DBpro you get input commands for static collision, the command is "Get static collision *Direction of Collision*()" and you will need some more coding to go along (See the example I posted)

Next thing to do is make gravity which is very simple, you can rather make a varible to use such as Grav#= which is usefull if you have several commands cause then you can use that and then just change the global varible to change the Grav# all together. Then you just have to use the position camera command using the Grav#= on the Y varible.

Just an example if your stuck :


Note that it might not all be right because I am still learning DBpro myself but it should work as far as I know.

Windows 7, Amd Athlon 7750 Black Editon (64 bit,3ghz + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.
Hockeykid
DBPro Tool Maker
18
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 24th Oct 2010 06:55 Edited at: 24th Oct 2010 06:57
Quote: "Next thing to do is make gravity which is very simple, you can rather make a varible to use such as Grav#= which is usefull if you have several commands cause then you can use that and then just change the global varible to change the Grav# all together. Then you just have to use the position camera command using the Grav#= on the Y varible."


Err, gravity is a negative number. Actually, the actual force of gravity is -9.8.

Quote: "Just an example if your stuck "


Your codes a bit off. If I were him I would grab sparky's collision plugin.



Bigsnake
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 24th Oct 2010 16:16
Oh yeah I forgot that I had Sparky's Collision installed, I would of used that if I knew lol

Quote: "Err, gravity is a negative number. Actually, the actual force of gravity is -9.8."


I know Didn't think I would need to include that it needs to be a negative number because everyone should know that Gravity is a pull force resulting in negative number.

Windows 7, Amd Athlon 7750 Black Editon (64 bit,3ghz + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 24th Oct 2010 16:39
Thanks for your help its much appreciated. I am new to games programming and really just learning from tutorials.


However....



From the code snippet you can see what i have done, changed the file name.

In bold is the line i am having a problem with. I get this error message:

Parameter for 'LOAD OBJECT' do not match 'Filename, Object Number' at line 20.

i have played with the code but i dont see what is wrong.


I am using proffesional by the way.
zeza
18
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 24th Oct 2010 23:28
Well, your Filename is wrong in 2 places

and

It should be Files\levelbank

I'd change the world, but I don't have the source code
R.I.P. heltor, we will miss you
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 25th Oct 2010 12:04
i noticed that after instantly after posting the code!

Changed the / to \ and still doesnt work.




So here it is but i am still getting the same error message.
Bigsnake
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 25th Oct 2010 21:50
Quote: "`Load the universe file heregdividetexturesize=0 : universefile$="UNIVERSEFILEHERE"
load static objects "Files/levelbank\testlevel\universe.dbo",0"

Your universe file is part of the Rem, start a new line after the `Load the univese file here

Windows 7, Amd Athlon 7750 Black Editon (64 bit,3ghz + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 27th Oct 2010 13:14
I have made changes, nothing is part of rem which shouldnt be and still i get the same problem

`Load the univese file here
gdividetexturesize = 0 : universefile$ ="UNIVERSEFILEHERE"
load static objects "Files\levelbank\testlevel\universe.dbo",0
Rem load the universe static model for physics calculation
load object 1,"Files\levelbank\testlevel\universe.dbo" : hide object 1
sc_setupobject 1,0,0

I still get this message
Parameter for 'LOAD OBJECT' do not match 'Filename, Object Number' at line 27. Which is the line load object 1,"Files\.......



This is full code below




If anyone can solve problem will be very happy.
zeza
18
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 28th Oct 2010 00:41
Ok, I probably should have done this from the start, but I just looked at the parameters for load object, and the Filename needs to be first, so it should be


I'd change the world, but I don't have the source code
R.I.P. heltor, we will miss you
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 28th Oct 2010 12:04
Thanks !

I tought that was the problem myself.

Now on to the next hiccup the sc_setupobject command is not being understood!
MightyRy
15
Years of Service
User Offline
Joined: 19th Oct 2010
Location:
Posted: 1st Nov 2010 15:49


I have tried solving the problem but still cant get it working as the sc_setupobject is not being understood.

Can anyone help, is there something i am missing?

Login to post a reply

Server time is: 2026-07-03 23:47:54
Your offset time is: 2026-07-03 23:47:54