PDA

View Full Version : create new benchmark level...



Peppins
04-17-2007, 01:15 PM
Hi all, I have a question for you: how I can create new benchmark level??

ps. with the all effect of the game (explosion, monster movement, cam movement, all...)

please help me :(

Varus77
04-18-2007, 11:33 AM
Have a look a the original Benchmark.lua etc., map your own map like you want, and ready. This should be not a great problem for you. I did the same for my Hills-map long time ago to test the fps...

Peppins
04-22-2007, 05:21 AM
I have not understood :confused: How I create the waypoints, the cam movement and all effect (monsterspownpoint, explosion of barrel, etc...)

Please help me.... :(

Varus77
04-22-2007, 07:07 AM
Did you have a look at the Benchmark.lua files...?

You'll find something like this:
function C5L1_Benchmark:OnPlay(first)
if first then
local o = FindObj("demo001")
Game._demoproc = AddObject(Templates["PBenchmarkControler.CProcess"]:New(o,0.0085))
end
end
and in the CArea folder you'll find this demo001.CArea
The easiest way to create this demo001.CArea is to copy it in your level, or to make a new one with a normal editor. All what you need is a row of points:
o.Points[1] = VectorA:New(47.286,4.88831,167.418,0)
o.Points[2] = VectorA:New(48.5537,4.72314,146.525,0)
...
This means: X - Y - Z - coordinates of your Cam-fly called demo0001.CArea.
The 4. number is for the looking angle but won't work for cam or flying objects like e.g. witches. (works only for the monster-placement)
All the other things are normal modding work with the PE.

The same for my Hills Benchmark have looked like:
function Hills_Benchmark:OnPlay(first)
if first then
local o = FindObj("demo")
Game._demoproc = AddObject(Templates["PBenchmarkControler.CProcess"]:New(o,0.008))
end
end
with this demo.CArea object in CArea folder

Peppins
04-22-2007, 11:53 AM
Thx varus, but with pain ed how i can create a waypoint.

1: Object/new objec/CArea/demo001 (or other name)
2: how I create the other points (2,3,4....)?? Now i have created it with new .carea object (copyed the x,y,x coordinates and written in demo001.carea, but when i have started it, the cam movement is very very slow, why? how i can move the cam fast?, and how i can create an explosion of barrel and spawnpoint?? Is written in paineditorGG???

PeTjA
04-22-2007, 12:04 PM
Varus, Peppins can U both do me a favor and continue this thread in the creative corner "PainEditinGG" ?
I believe making a benchmark level is not a technical issue. The "PainEditinGG" thread seem to be perfect.

I already quoted Ur questions/answers http://www.dreamcatchergames.com/forums/showthread.php?p=214642#post214642

I would be very happy if U would continue Ur discussion there. Thanks mates.