home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


General Thread

by Aardappel on 01/05/2002 01:55, 15527 messages, last message: 03/01/2024 13:02, 12546950 views, last view: 11/05/2024 04:32

for questions, announcements etc.

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages

#11033: My screen goes rainbow when i start

by sillycat on 07/31/2008 18:39

ok im new, love the screenshots and im itching to play!

im running openSUSE 10.3 after running ./sauerbraten it does its thing, loads and i get to the menu screen that says multiplayer singlepleyer etc and i can see eveything clearly for a little while but then the screen goes weird and has funny dots everywhere all different colors. after staying like that for a little while it logs me out of my computer (not shutdown or reboot)

reply to this message

#11034: rotating cube object

by scanf on 08/01/2008 05:00

Hi all,

I'm developing/experimenting with a couple of ideas. I've created my own ent class to add the new entities to the SB source. I'm having a problem rotating correctly. Specifically on the X axis.

I've looked through the source for an example but with no luck. Basically it would be like the weapon pickup's but not rotating on the Z axis but on the X. Currently I believe rotating on Z is something like so:

o.rotate_around_z(((yaw+ 90) )*RAD);
o.add(o);

The idea is to change the rotation so an object can roll at you.

Make sense? :) Thanks for the help.

reply to this message

#11035: Re: rotating cube object

by Quin on 08/01/2008 06:56, refers to #11034

vec::rotate_around_* is not for yaw/pitch/roll control, it allows calculating "circles". What you want is more like what is being done in fpsgame/entities.h:renderentities() which goes more like..

renderent(e, e.type, (float)(1+sin(cl.lastmillis/100.0+e.o.x+e.o.y)/20), cl.lastmillis/(e.attr2 ? 1.0f : 10.0f));

And when we check, that third parameter is controlling the yaw of the rendered model, so for say, the player, you could do something like...

player1->pitch = (float)(1+sin(lastmillis/100.0)/20);

.. to make him tumble around. That help?

reply to this message

#11036: ..

by scanf on 08/01/2008 07:20

Thanks Quin,

I think I over complected what I meant to say.

I you look at a weapon pick up on a map. It spins (via the Z rotate_around_z) which works nicely. I just want to rotate around Y. (lol I think I said X in my post). So the object would spin toward me and not to the side (like the ammo's). I guess a good example would be a wheel.

reply to this message

#11037: Re: rotating cube object

by scanf on 08/02/2008 06:07, refers to #11035

Quin that works perfectly. I found the issue I had the md3 model rotated in the md3.cfg so roll was pitch.

Thank you

reply to this message

#11038: adding weapons

by Cooperlsxl on 08/02/2008 17:36

How to add weapons, activate the doors and stuff like that? Please help me and my friends cant seem to get it to work.

reply to this message

#11039: Re: adding weapons

by SheeEttin on 08/02/2008 17:56, refers to #11038

http://sauerbraten.org/README.html

reply to this message

#11040: ..

by Cooperlsxl on 08/02/2008 18:27

I already looked there. Unless you can give me a specific section of the guide that it is in Im not going to waste my time again to look through it.

reply to this message

#11041: Re: ..

by Cooperlsxl on 08/02/2008 18:27, refers to #11040

asdf

reply to this message

#11042: ..

by Cooperlsxl on 08/02/2008 18:28

Can someone provide me with a direct source of information for providing my map with weapons and how to activate doors and stuff.

reply to this message

#11043: Re: ..

by SheeEttin on 08/02/2008 18:42, refers to #11042

http://sauerbraten.org/docs/editref.html#newent
http://sauerbraten.org/docs/editref.html#_shells_

http://sauerbraten.org/docs/editref.html#_mapmodel_
Map "doordemo"

reply to this message

#11044: RPG Specific object placement

by NerdFencer on 08/02/2008 21:53

When editing the RPG maps (-grpg %1 %2 %3 %4 %5) how do i place the rpg specific objects (Wolf Spawn, Grizzly Spawn, Healthpotion)???

reply to this message

#11045: Re: RPG Specific object placement

by tman_elite on 08/02/2008 23:29, refers to #11044

I'm pretty sure the command is
/newrpgspawn Name
where Name is whatever the thing is that you are making (wolf, npcman, etc.)

reply to this message

#11046: Setting up a server.

by R0b0t1 on 08/03/2008 03:30

(I know this is probably in here, but I really don't want to look. If you've posted the solution before, and would link me to it, thank you.)

I'm on Ubuntu Linux and have a Linksys modem. I've gone to the 'setup modem' page and told it to forward the correct ports, but when running the shell script with the argument '-d' it says it cannot respond to the master server's ping. I really don't know what would be wrong.


Also, how would I add a title to it? And, of course, claim master on it? I haven't found much help in the documentation...

reply to this message

#11047: Re: Setting up a server.

by Hirato Kirata on 08/03/2008 04:04, refers to #11046

I'm not sure what's wrong with the modem, but did you set it to send the data to your PC?
I don't think ubuntu has a built in firewall, but check the possibility of a firewall too

for the latter half of it
http://sauerbraten.org/docs/config.html#command_line_options

try looking a bit harder next time ;)

reply to this message

#11048: sorry for spamming again (door opening)

by Cooperlsxl on 08/03/2008 04:22

I was looking through and I do not understand what info to put into the command.

reply to this message

#11049: Re: Setting up a server.

by SheeEttin on 08/03/2008 05:52, refers to #11046

I use Kubuntu, and I don't think I've ever gotten a server running (not that I've ever really tried).

I think starting with Hardy (maybe Gutsy), there is a firewall (or at least some iptables/ipchains) thing installed by default, though I don't know if it's enabled, or even how you configure it.

To test your server, try these commands (in Sauer) in sequence:
/connect 127.0.0.1
/connect 192.168.1.100 // (or whatever your LAN IP is)
/connect 24.3.87.215 // (or whatever your WAN IP is)
If one fails, it'll tell you where the problem is. 127.0.0.1 should work, because it shouldn't leave your host (computer). 192.168.1.100 will pass through your router and back to you. Connecting to your WAN IP will connect out through your router and the world of the Internet, then back to you.

Aside from that, I can't really help.

reply to this message

#11050: Weapons, Door

by Cooperlsxl on 08/03/2008 05:54

Help again, I did not see my quesiton answered because I do not really understand this helping community but here it is again.

I am needing help on spawning weapons and making doors move, I need a exact way to do it becasue the Readme doesnt really explain it all that goood. Much appreciated for everyone who trys to help.

reply to this message

#11051: Re: Weapons, Door

by SheeEttin on 08/03/2008 06:14, refers to #11050

Here's how you make some ammo:
I'm assuming you've just started Sauer.
- Press "E".
- Press "`". A little prompt with a slash should appear above where the HUD should be.
- Type "newmap".
- Look at the ground.
- Press "`".
- Type "newent rockets". Press enter.
- Press "`".
- Type "savemap ammomap".
- Press "`".
- Type "map ammomap".
You should see some rocket launcher ammo appear where you placed the rockets entity.

reply to this message

#11052: Re: Weapons, Door

by tman_elite on 08/03/2008 06:16, refers to #11050

Two and a half minutes of reading the links that were posted would take less time than waiting for an answer.

To make weapons, press t and type:
/newent ammotype
The ammo types are:
shells -- shotgun
bullets -- chaingun
rockets -- rocket launcher
grenades -- grenade launcher
riflerounds -- rifle
cartridges -- pistol

Moving doors are more complicated. You will want to read the editing reference for this. To make a simple door that opens when you step near it and closes after 5 seconds, type:
/newent mapmodel N 10
where N is the id number of a door model. I don't happen to know these off the top of my head. Look at other door models to find it.

reply to this message

Go to first 20 messagesGo to previous 20 messages    Board Index    Go to next 20 messagesGo to last 20 messages


Post a Message

Username

Email

Subject

Body

7 multiplied by 6 =


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
58505893 visitors requested 76459840 pages
page created in 0.143 seconds using 10 queries
hosted by Boost Digital