TS/RA2 Voxel Support

Information and discussion for custom maps and mods.
User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Silly compiler bugs... The mono 2.10.11 compiler accepted that dodgy code without complaint. Fixed.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Mono 2.10.11? Is this a Mac release only? Thought latest stable was 2.10.9. I am currently on Mono 3.0.6.

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Looks like it is, but the mono site doesn't have any release notes for it...

Code: Select all

paul@Odin:~$ mono --version
Mono JIT compiler version 2.10.11 (mono-2-10/2baeee2 Wed Jan 16 16:40:16 EST 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       normal
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          yes(2.9svn-mono)
	GC:            Included Boehm (with typed GC)

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Still compiler errors with make all

Code: Select all

OpenRA.Editor/RenderUtils.cs(48,29): error CS0117: `OpenRA.Traits.RenderSimple' does not contain a definition for `GetImage'
/home/matthias/Projekte/OpenRA/OpenRA.Game.exe (Location of the symbol related to previous error)
OpenRA.Editor/RenderUtils.cs(50,43): error CS0165: Use of unassigned local variable `image'
Compilation failed: 2 error(s), 0 warnings
make: *** [OpenRA.Editor.exe] Fehler 1
Last edited by Matt on Wed May 01, 2013 10:01 pm, edited 1 time in total.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Crash when I built the APC in voxeltest mod:

Code: Select all

Exception of type `System.ArgumentException`: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,OpenRA.Mods.RA.Render.MuzzleFlash].Add (System.String key, OpenRA.Mods.RA.Render.MuzzleFlash value) [0x00163] in /home/abuild/rpmbuild/BUILD/mono-3.0.7/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:450 
  at OpenRA.Mods.RA.Render.WithMuzzleFlash..ctor (OpenRA.Actor self) [0x0014f] in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs:63 
  at OpenRA.Mods.RA.Render.WithMuzzleFlashInfo.Create (OpenRA.ActorInitializer init) [0x00001] in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Render/WithMuzzleFlash.cs:30 
  at OpenRA.Actor..ctor (OpenRA.World world, System.String name, OpenRA.FileFormats.TypeDictionary initDict) [0x000bf] in /home/matthias/Projekte/OpenRA/OpenRA.Game/Actor.cs:94 
  at OpenRA.World.CreateActor (Boolean addToWorld, System.String name, OpenRA.FileFormats.TypeDictionary initDict) [0x00001] in /home/matthias/Projekte/OpenRA/OpenRA.Game/World.cs:151 
  at OpenRA.Mods.RA.Production.DoProduction (OpenRA.Actor self, OpenRA.ActorInfo producee, OpenRA.Mods.RA.ExitInfo exitinfo) [0x00014] in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Production.cs:54 
  at OpenRA.Mods.RA.Production.Produce (OpenRA.Actor self, OpenRA.ActorInfo producee) [0x0006f] in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Production.cs:123 
  at OpenRA.Mods.RA.ProductionQueue.BuildUnit (System.String name) [0x0004e] in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Player/ProductionQueue.cs:332 
  at OpenRA.Mods.RA.ProductionQueue+<ResolveOrder>c__AnonStorey1B7.<>m__57B &#40;OpenRA.World _&#41; &#91;0x00085&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Mods.RA/Player/ProductionQueue.cs&#58;250 
  at OpenRA.World.Tick &#40;&#41; &#91;0x00172&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/World.cs&#58;206 
  at OpenRA.Game.Tick &#40;OpenRA.Network.OrderManager orderManager&#41; &#91;0x0016e&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/Game.cs&#58;192 
  at OpenRA.Game.Tick &#40;OpenRA.Network.OrderManager orderManager, OpenRA.Graphics.Viewport viewPort&#41; &#91;0x00033&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/Game.cs&#58;139 
  at OpenRA.Game.Run &#40;&#41; &#91;0x00028&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/Game.cs&#58;481 
  at OpenRA.Program.Run &#40;System.String&#91;&#93; args&#41; &#91;0x00011&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/Support/Program.cs&#58;91 
  at OpenRA.Program.Main &#40;System.String&#91;&#93; args&#41; &#91;0x00032&#93; in /home/matthias/Projekte/OpenRA/OpenRA.Game/Support/Program.cs&#58;36

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Yeah, those are known problems with the render-split refactoring branch that the voxels branch is currently based on.

Once I get some free time back I want to start moving forwards with this again, aiming to get it merged for release N+1.

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Image

Thanks to Katzsmile and Cmd. Matt, we now also support TS/RA2 sprites.

User avatar
secret
Posts: 62
Joined: Fri Aug 03, 2007 1:53 pm

Post by secret »

*Drops tear*

So, the next release will feature support for TS/RA2 SHPs? How will I, the average joe be able to implement them? Is there a trait that says they're using that palette?

Sweet work, nonetheless.

Also, is it me or shadows are missing?

raminator
Posts: 106
Joined: Tue Mar 15, 2005 6:31 pm
Location: Stuttgart

Post by raminator »

shadows are missing on the buildings but are there on infantry and voxels :)

User avatar
secret
Posts: 62
Joined: Fri Aug 03, 2007 1:53 pm

Post by secret »

raminator wrote: shadows are missing on the buildings but are there on infantry and voxels :)
Are you sure? AFAIK there are inf. units that have those shadows attached to their image frames, not to the shadow frames...

User avatar
Sleipnir
Posts: 878
Joined: Wed Apr 10, 2002 11:52 pm
Contact:

Post by Sleipnir »

Our current set of rendering traits don't understand split shadows or building animations split across multiple files. We'll add new traits to support these when the time comes. Infantry shadows are combined with their images, and voxel shadows are rendered dynamically.

Shp(TS) is a first class format-citizen. You don't need do anything special to tell the game to use them. You can use the existing palette mechanism to set a different palette for specific actors.

These changes won't make it into the next release (the top priority is for a new stable version, so we're only merging bugfixes at this stage), but one of the focuses for the next release cycle will be native support of TS/RA2/D2K assets.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

Post by Matt »

Katz told me that TS and RA2 make more extensive use of SHP overlays (not just shadows) which is currently not supported in a generic way. Plus there might be work to be done to support the TS/RA2 .mix files as well as the terrain format which might include 3D meta-data.

User avatar
Petrenko
Posts: 156
Joined: Fri Apr 08, 2011 5:36 pm

Post by Petrenko »

So i guess we should add new branches to the content-page, hmm? :3
Hail to the soviets!

User avatar
Harisson
Posts: 149
Joined: Sun Jan 13, 2008 10:03 pm

Post by Harisson »

IMO these voxels are nicer than in RA2

WolveNZ
Posts: 13
Joined: Wed May 15, 2013 5:36 am
Location: Auckland

Post by WolveNZ »

They certainly show the lack of Detail that RA2 had... :/

But, none-the-less, looks pretty sweet! would be awesome so see RA2 on OpenRA at some stage

Post Reply