Page 1 of 1

What is the "blockinfo" ?

Posted: 12 Jun 2015, 06:56
by kana00
Hello everyone :)

I'm building a integrated custom environment Item (like Lego that fit.)
Image
One of my objects would use the PhysicID = "Bumper".(as the bumper of the picture.)
The problem is that without additional paramettres ,the physicID not work. :?
In the official documentation : http://doc.maniaplanet.com/creation/imp ... _mesh.html
It is written : "Bumper (the storm bumpers, the directional bumpers have special properties stored in the blockinfo, not in the material))"

What is the "blockinfo" ?
And, How to use this blockinfo (especially about Bumper) ?

I want this block is integrated into a map without a Title Pack, but in the NadeoImporter.exe(especially in the NadeoImporterMaterialLib.txt file), there is no link = "" to an Bumper integrated texture.
If you are going to make a updates : Can you add a link to this texture ?
And increase the size of embeddable blocks.
Because, often, embeddable blocks are really basic, I would even say too "cubic". (I would do more beautiful blocks, but I am limited by the ridiculous size of 307.2 Ko embeddable block).
Image
Picture say ; the integrated file is too large (1.4 Mo)


And, we have incoherence
Image
I have to divide the blocks in order to integrate them.
So the sum of the size of ALL my blocks that must be lower at 307.2 Ko.
it's almost impossible to make a custom integrated environment for Item that players can use them in the Title Elite Pack, Siege or Obstacle Pack.

Suggestion : the custom item is not as big as no embeddable items. players could download the items only one time, and keep some Mo on their hard drive for such item. (like in the game Garry's mod)


My questions : What is the "blockinfo" ?
And, How to use this blockinfo (especially about Bumper) ?

Re: What is the "blockinfo" ?

Posted: 13 Jun 2015, 10:04
by TMarc
Nice blocks :thumbsup:

BlockInfo is special data related to Nadeo original blocks, and it is not accessible to item creators (at least at the moment).
See also here: viewtopic.php?f=509&t=26277&p=215484

For directional bumpers, the blockinfo certainly stores the direction and the angle of the trajectory the player gets bumped towards.

Re: What is the "blockinfo" ?

Posted: 13 Jun 2015, 15:56
by kana00
^^ yeah it takes me time, but missing blocks in the game.
and I would ShootMania complete with beautiful bumper blocks.

it's really important to add new bumper to the game.
But we must to can create and edit a blockinfo.
so I could for example : to make a block that aspire forward in the tube.

Someone from nadeo could complement the official documentation ? (with a post here, or on the official site doc.maniaplanet.com)

Please :D

Re: What is the "blockinfo" ?

Posted: 13 Jun 2015, 19:27
by jui
I want this block is integrated into a map without a Title Pack, but in the NadeoImporter.exe(especially in the NadeoImporterMaterialLib.txt file), there is no link = "" to an Bumper integrated texture.
If you are going to make a updates : Can you add a link to this texture ?
There is i think two ways to use PhysicsId "Bumper" with integrated texture (embedable).

1) Use ConvertAssistant enable the "Physics Hack" checkbox.
In your meshparams.xml you need somthing like this

Code: Select all

<Material Name="_TDSN_MyBumper" Model="TDSN" BaseTexture="SomeIngameTexture" PhysicsId="Bumper"/>
I do not know how "Bumper" behaves but i did it once with "Snow" and StadiumGrass texture and it worked.

2) I did not try this method but read it here in the forum.
Define your own material in NadeoImporterMaterialLib.txt.
Maybe that is how Convert Assistant does the hack, but i do not know.

I guess about the size limit all you can do right now is to make less round objects :|
For Storm i guess a cylinder with only 8 or 10 faces still looks decent ;)

Edit: you could also try PhysicsId "Turbo" maybe it does something in Storm.

Re: What is the "blockinfo" ?

Posted: 14 Jun 2015, 15:35
by kana00
I tried but, It doesn't work. (thank you for help anyway ^^)
I think that, we don't have set parameters in the "blockinfo".

anyone know how to use the blockinfo ?

Re: What is the "blockinfo" ?

Posted: 14 Jun 2015, 23:15
by Electron
kana00 wrote:What is the "blockinfo" ?
I think the BlockInfo (full name is ConstructionBlockInfo) is a C++ class including parameters and code responsible for drawing a block in the arena or inside the editor. It may also own information, how a arena player behaves on the block.

There is a class "CGameCtnBlockInfo" (derived from the base class "CGameCtnCollector") including code common to all kind of blocks.

There are some subclasses for special types of blocks, e.g. CGameCtnBlockInfoClassic, CGameCtnBlockInfoTransition, CGameCtnBlockInfoPylon, CGameCtnBlockInfoSlope, CGameCtnBlockInfoRoad, CGameCtnBlockInfoClip and some more.

With GbxDump you can examine the BlockInfo class a block belongs to. Below an output from a Stadium ramp:
Image

Code: Select all

File Name:      StadiumRamp.TMEDClassic.Gbx
File Size:      17.4 KB
File Type:      GameBox
File Version:   6
File Format:    Binary
Ref Table:      Uncompressed
File Body:      Uncompressed
Class ID:       03051000 (BlockInfoClassic)
User Data:      16.1 KB
Number Refs:    10
------------------------------------------------------------------
Num Ext Refs:   3
Num Levels Up:  2
Folder 1:       ConstructionBlockInfo
Folder 2:       ConstructionBlockInfo\ConstructionBlockInfoClassic
Folder 3:       ConstructionBlockInfo\ConstructionBlockInfoClip
Folder 4:       Media
Folder 5:       Media\Solid
Folder 6:       Media\Solid\Ramp
..................................................................
Flags:          00000001
File Name:      StadiumRoadMainClip.TMEDClip.Gbx
Node Index:     2
Use File:       False
Folder Index:   3
..................................................................
Flags:          00000001
File Name:      Ground.Solid.Gbx
Node Index:     6
Use File:       True
Folder Index:   6
..................................................................
Flags:          00000001
File Name:      Air.Solid.Gbx
Node Index:     9
Use File:       True
Folder Index:   6
------------------------------------------------------------------
Chunk 1:        [0301A003] (97 bytes)
Chunk 2:        [0301A004] (16388 bytes)

-[0301A003]-------------------------------------------------------
Name:           StadiumRamp
Collection:     Stadium
Author:         Nadeo
Version:        5
Page Path:      RoadMain/Hazards/
Flags:          00000001
Index:          26

-[0301A004]-------------------------------------------------------
Icon Width:     64 pixels
Icon Height:    64 pixels
==================================================================
The Stadium ramp is based on the class BlockInfoClassic and it also used the external class BlockInfoClip (to draw the clips inside the editor). There are also two different external classes to draw the ground and air variant of the block.

There are no further information known about the contents of the BlockInfo classes.
kana00 wrote:And, How to use this blockinfo (especially about Bumper) ?
Objects and Items are derived directly from the base class "CGameCtnCollector". So they don't have access to BlockInfo code.

Re: What is the "blockinfo" ?

Posted: 15 Jun 2015, 00:27
by HubbleSM
I'm not sure if it's possible to do use the "bumper" material. Maybe it's a bug or it's on purpose by Nadeo. I tried many times to use that material because it would offer a lot of possibilities. So far I've also never seen a custom object like that.

The "OFFZone" material didn't work for me neither.

Re: What is the "blockinfo" ?

Posted: 16 Jun 2015, 17:40
by kana00
ho :o oké...

Nadeo, please, make available this feature as soon as possible.
And I hope that you will read this post and change the available size (and texture "bumper" available),
or put another system for managing custom item.