Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [share] C3 console (https://postpacific.loc-online.com/showthread.php?t=3061)

cypher 21.01.2006 22:51

[share] C3 console
 
While I'm digging around the geodata stuff, thought of sharing some nfo on the C3 "hidden" console ...

1. It's a good idea to copy the entire "geodata" server folder to the "system" game folder (/system/geodata/..._conv.dat). May be usefull later on.

2. Start the game and connect to your server (no cmdline args, we don't need -log, -console etc. anymore)

3. As you know, /xxx are user cmds, //xxx builder cmds, ///xxx ... guess what :). From now on /// is our friend.


Some cmds ...

///l2debugwindow - brings up the dbg console

///l2debug - hooks the log output to the console

///geodata - enables/disables the server geodata overlay (remember the geodata folder)

///buildzone map=[map_name] (here i'm digging around ... also linked to geodata folder)

///showborderline

///showsectors

///camerawalking mode=on|off

///c_rmode [1-7]

///bighead size=[1-n] (that's the most funny)

///open [map name] (20_21, etc, etc)

///get [class_name] [attrib_name]

///set [class_name] [attrib_name]

///editdefault class=[class_name]

... and more :)

Have phun,
cypher | emporio

drzoom 21.01.2006 23:05

ok, but what needed to use /// commands?
only copy geodata?
builder char?
something else?

Flamestrike 21.01.2006 23:39

Holy G....that's awesome...
More commands maybe?

drzoom 22.01.2006 00:02

understood - u should have a builder char...

Flamestrike 22.01.2006 00:12

And you should have some english leasons. I asked if there are more commands not that I must be on builder.

sct 22.01.2006 00:14

big head with size 200 = lolz

Astomakith 22.01.2006 00:32

VERY interesting. I'm wondering how come nobody found these before (or at least informed the community about them)

Which leads me into the next question, where'd you find out about these?

I'm intersting in the whole plethora of commands. This is an excellent find.

cypher 22.01.2006 00:41

My target is ///buildzone (had to hex a bit the engine to get it exporting some GeoCell stuff). There are alot of other cmds (excepting the standard unreal engine ones), but mostly related to in-editor usage. You can easily find them in engine.dll ;)

cypher | emporio

Astomakith 22.01.2006 00:43

I figured as much, thanks.

Metalmurphy 22.01.2006 01:26

Congrats on the great work cypher. Hope u succeed ;)

cypher 22.01.2006 01:27

Quote:

Originally Posted by talmage
@cypher

Not sure what good open is, however:

///open 23_20 = crash
///open 23_20.dat = no crash


I also tried:

///buildzone 23_20
///buildzone 23_20.dat
///buildzone map=23_20.dat
///buildzone map=23_20.dat texture=T_23_20.utx

All 4 cause the client to crash.

Read my prev post ... buildzone is an editor cmd. I had to chage the engine, just to be able to continue debugging on it. I'm not sure yet where it leads, but it involves both client terrain info and server geodata ... one of the approaches found inthere resembles to the building of pathnodes for CStrike AI by actor position sampling (scout). I tested it on giran map (22_22), generated 3 GeoCell files (about 170Mb each) ... but no height data yet.

///open is just for map changing ... may be usefull for debugging/geomapping when running the game in console-only mode

cypher | emporio

Lord_Neo 22.01.2006 01:45

Nice one! :D

/offtopic
btw emporio is a game releaser xD

Shawnmb 22.01.2006 01:56

Damn this all comes just weeks after I deleted my prelude client files.... Those could have been really useful.

I'm aware you probably know but //viewpn shows pathnode lines even without the geodata in the folder.

Alexandros 22.01.2006 02:08

Nice one Cypher :P

kgptzac 22.01.2006 04:19

hmm i smell this is going to lead to some new and more exciting fixes :D good job man

silent 22.01.2006 05:00

Sweet shit <3

SlayerX 22.01.2006 06:00

you found it :D very good

Shawnmb 22.01.2006 06:42

/// also allows unreal console commands. Example: ///stat fps

OnlyOne 22.01.2006 10:34

Good discovery Cypher! Keep it going :!:

top-gear 22.01.2006 12:14

gratz! good job

czar 22.01.2006 12:35

Quote:

Originally Posted by cypher
Quote:

Originally Posted by talmage
@cypher

Not sure what good open is, however:

///open 23_20 = crash
///open 23_20.dat = no crash


I also tried:

///buildzone 23_20
///buildzone 23_20.dat
///buildzone map=23_20.dat
///buildzone map=23_20.dat texture=T_23_20.utx

All 4 cause the client to crash.

Read my prev post ... buildzone is an editor cmd. I had to chage the engine, just to be able to continue debugging on it. I'm not sure yet where it leads, but it involves both client terrain info and server geodata ... one of the approaches found inthere resembles to the building of pathnodes for CStrike AI by actor position sampling (scout). I tested it on giran map (22_22), generated 3 GeoCell files (about 170Mb each) ... but no height data yet.

///open is just for map changing ... may be usefull for debugging/geomapping when running the game in console-only mode

cypher | emporio

got it sorta up to where u are but got 4 files, first three being same exact files, and the last one being a little different.

so far this is what ive found about the buildzone

705A65C7 PUSH engine.707FFDE0 UNICODE "BuildZone"
705A6603 PUSH engine.707FFDD4 UNICODE "Map="
705A6636 PUSH engine.707FFDC4 UNICODE "Width="
705A664B PUSH engine.707FFDB4 UNICODE "Post="

ex:
///buildzone map=22_22 width=512 post=test

i have no clue tbh what bearing width or post has to do with buildzone.

one other thing that i seem to have picked up on is that if u arent near the geodata u want to buildzone on, your client will crash

and the files outputted will be:

7072543F PUSH engine.7082165C ASCII "%d_%d_BuildTest_1_TopMostCells"
70725C29 PUSH engine.70821454 ASCII "%d_%d_BuildTest_2_WithWalk"
70726096 PUSH engine.70821424 ASCII "%d_%d_BuildTest_3_AfterPostprocessing"
707265B9 PUSH engine.708213CC ASCII "%d_%d_CompareBuiltDataWithGeo"

the first three being the same size/contents, and the last one being unique

cypher 22.01.2006 13:34

Good job ...

It's true, I get the 4 files (3x170Mb, 1x120Mb), but they contain just empty cells. In a normal case they must have all the data required to generate the multilayer _conv file ... somehow is not linking to the TerrainInfo.

The interesting thing is when building cellmap, the AddCell function receives all xyz coords. May be a good place to hook into engine for dumping height data.

PS: ideed, if the map you're trying to buildzone is not loaded, the client crashes. Also, the scout method crashes if your current char is not a female warrior :D

cypher | emporio

czar 22.01.2006 14:00

something i think might come in handy for some people is:

///stat l2

constantly updated x,y,z coords as u move

drzoom 22.01.2006 14:14

Quote:

Originally Posted by Flamestrike
And you should have some english leasons. I asked if there are more commands not that I must be on builder.

I "self-replied" for my post! You should have some english [highlight=red:1714736641]lessons[/highlight:1714736641] yourself!

Co0L 22.01.2006 14:59

w00t! thx4share :)

hr 22.01.2006 15:07

width - it seems the game scans territory in radius of 'width' from start point (set 256, 512, 1024 and you will see). that files contain not only empty cells, but also 'no dropping cell' - seems to be area of scanning.

TheOrder 22.01.2006 16:47

Awsome discovery keep up the good work cypher !!!

Domzelan 22.01.2006 18:00

Great work cypher!

divine 22.01.2006 18:42

General protection fault!

History: RenderCube <- Render <- ShowSeversideHeightmap <- GeoRender <- RenderLevel <- FLevelSceneNode::Render <- FPlayerSceneNode::Render <- UGameEngine::Draw <- UWindowsViewport::Repaint <- UWindowsClient::Tick <- ClientTick <- UGameEngine::Tick <- UpdateWorld <- MainLoop

any ideas why i got this error ?
i hade geodata option enabled and was flying around on c4 lands.

cypher 22.01.2006 18:47

Quote:

Originally Posted by hr
width - it seems the game scans territory in radius of 'width' from start point (set 256, 512, 1024 and you will see). that files contain not only empty cells, but also 'no dropping cell' - seems to be area of scanning.

Yes, it's using your char to scan the terrain withing an N radius around starting position.

Make sure you're using a female warrior char (hardcoded StaticActor in engine), and also in unrealed.ini (don't encrypt it):

[WorldBuildOptions]
RunWalkbuild=True
GeoTestDuringBuild=True
RunPostbuild=True

I'm letting it run with a 1024 radius ... may take some time, but i'll let you know the results.

Cheers,
cypher | emporio

hr 22.01.2006 18:53

already done with male warrior at 1024 - 1600+ seconds @ p4-3.2/2gb, scanned area described by "No Droping Cell", gonna try with your prefs

cypher 22.01.2006 18:56

Wondering if the ValidatePosition server cmd is not influencing the buildzone process ... reseting the actor position ...

Shawnmb 22.01.2006 20:00

qmove, no. enable_plane_collision, not really, but requires working geodata. gotopn is just "walk to pathnode point id" so no. The rest yeah :)

cypher 22.01.2006 20:31

It's not saving to geodata files (save etc.). But if we get the cells with coordinates it's still a step forward.

cypher | emporio

Virexor 23.01.2006 09:42

if it uses unreal console commands, it should be possible to use all of these:

http://unreal.epicgames.com/UTConsole.htm

zabbix 24.01.2006 13:24

hmm... engine.dll contains some interesting cell types, like cel (%d,%d,%d) diff(%d)

x,y,z,movement flag?
if its so, it should be enought to generate geodata wit it...

drzoom 24.01.2006 13:37

Yes, i think it's so...

srh 24.01.2006 14:11

how about .\serverdata folder?

zabbix 24.01.2006 15:34

looks like its trying to find geodata in /geodata,/serverdata and root folder

Kryak 24.01.2006 20:49

muhaha


All times are GMT. The time now is 16:26.