Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » LevelRedit, a .mix to .lvl converter!  () 3 Votes
icon11.gif  LevelRedit, a .mix to .lvl converter! [message #284227] Thu, 13 September 2007 18:30 Go to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Hello together!

Finally, after few weeks of hard work, I finished a program to convert Renegade maps back to LevelEdit level files.
Please report warnings, unusual errors and bugs to yrr@icefinch.net.

Download: http://www.icefinch.net/files/LevelRedit.zip


Usage:
  • Add one or more Renegade .mix maps.
  • Set the output folder (you'd use your LevelEdit folder).
  • Click on 'Convert Now!'.
  • After converting, open LevelEdit and choose the mod package which has the same name as the map you just converted.
  • Open the .lvl file for the map you converted.


After conversion, to complete the map:
  • Remove pathfind generators you don't need. The converter automatically creates pathfind generators in front of each carmaker, which could be too much.
  • Remove duplicate tiles. The converter may add tiles which were already imported with the terrain and therefor may be duplicates.
  • Add pathfind blockers as you need them.
  • Save the map.
  • In the menu, choose 'Pathfind' > 'Generate sectors...'. This may take much time.
  • Save the map.
  • In the menu, choose 'Lightning' > 'Compute Vertex Solve', check 'Check Occlusion' and hit OK. This may take much time.
  • Save the map.
  • You should add and apply VIS points to improve the map's performance. Skip this if you only want to test the map.


Restrictions:
  • As mentioned above, LevelRedit may produce duplicate tiles.
  • No editor only objects will be generated, you have to add them by yourself.
  • No VIS points will be generated, you have to add them by yourself.


Protection:
  • If you don't want your map to be converted back to a LevelEdit level file, place a light anywhere on your map and set it's ambient light color to RGB(51,102,153).
  • You cannot protect old maps you already released.


Re: LevelRedit, a .mix to .lvl converter! [message #284230 is a reply to message #284227] Thu, 13 September 2007 18:58 Go to previous messageGo to next message
GrayWolf is currently offline  GrayWolf
Messages: 214
Registered: March 2006
Karma: 0
Recruit
Sweet awesome.

Re: LevelRedit, a .mix to .lvl converter! [message #284237 is a reply to message #284227] Thu, 13 September 2007 19:30 Go to previous messageGo to next message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
I had hoped this would reveal the secrets of Skirmish00 but the bots have no scripts attached Sad

WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Re: LevelRedit, a .mix to .lvl converter! [message #284238 is a reply to message #284230] Thu, 13 September 2007 19:31 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Nice Work! Thumbs Up

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: LevelRedit, a .mix to .lvl converter! [message #284254 is a reply to message #284227] Thu, 13 September 2007 21:01 Go to previous messageGo to next message
IronWarrior is currently offline  IronWarrior
Messages: 2460
Registered: November 2004
Location: England UK
Karma: 0
General (2 Stars)
Awesome, I've really didn't think it could be done, am happy to say that it has. Smile

I've tested it and it works, loaded up siege, everything is there.

I'll did have alot of problems with it crashing alot, but I've plugged the folder into my test modding folder and it works.

Good job.

I've also put it on Game-Maps.NET now, you can can download it here: >>Download<<

I'll hope you don't mind, do you have a website or anything that I'll can link you too?
Re: LevelRedit, a .mix to .lvl converter! [message #284259 is a reply to message #284227] Thu, 13 September 2007 21:47 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

What crashes?

My website is www.icefinch.net, but I'll add information there about that project later.


Re: LevelRedit, a .mix to .lvl converter! [message #284266 is a reply to message #284227] Thu, 13 September 2007 23:33 Go to previous messageGo to next message
Veyrdite is currently offline  Veyrdite
Messages: 1471
Registered: August 2006
Location: Australia, Sydney
Karma: 0
General (1 Star)
WOOOOOT
HAIL YRR
I've had maps for years that have lost their lvl files!

EDIT: what about PKG's?


WOL: Veyrdite Previously: Dthdealer ( a long time ago )

[Updated on: Thu, 13 September 2007 23:38]

Report message to a moderator

Re: LevelRedit, a .mix to .lvl converter! [message #284295 is a reply to message #284266] Fri, 14 September 2007 03:28 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Dthdealer wrote on Fri, 14 September 2007 08:33

WOOOOOT
HAIL YRR
I've had maps for years that have lost their lvl files!

EDIT: what about PKG's?


I'm not going to support PKGs right now. Try to play around with it, maybe it already works. E.g. if the .pkg contains a Test.lsd/ldd, rename the *.pkg to Test.mix, extract the objects.ddb into the LevelRedit/data directory and try converting.


Re: LevelRedit, a .mix to .lvl converter! [message #284305 is a reply to message #284259] Fri, 14 September 2007 04:55 Go to previous messageGo to next message
IronWarrior is currently offline  IronWarrior
Messages: 2460
Registered: November 2004
Location: England UK
Karma: 0
General (2 Stars)
Yrr wrote on Thu, 13 September 2007 23:47

What crashes?

My website is www.icefinch.net, but I'll add information there about that project later.


Level Editer.

I'll first unpacked it and all that, that work's fine.

Moved the .lvl folder to my main modding folder, placed it with the other Levels.

Started Level Editer, make sure that the presents are right, then started to load the map, then it crashed.

Re: LevelRedit, a .mix to .lvl converter! [message #284322 is a reply to message #284227] Fri, 14 September 2007 07:19 Go to previous messageGo to next message
jamiejrg is currently offline  jamiejrg
Messages: 403
Registered: February 2007
Location: Canada
Karma: 0
Commander
Wow, this app came together quick. Your dedication is astounding.

Jamie


cncnick13 wrote on Fri, 24 August 2007 23:39

ok im using my dektop right now


cncnick13 wrote on Sun, 26 August 2007 00:04

umm whats the edit button
Re: LevelRedit, a .mix to .lvl converter! [message #284353 is a reply to message #284227] Fri, 14 September 2007 11:56 Go to previous messageGo to next message
IronWarrior is currently offline  IronWarrior
Messages: 2460
Registered: November 2004
Location: England UK
Karma: 0
General (2 Stars)
Quote:

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

<LevelRedit v1.00>

Started log output at 2007-09-14 19:54:05

--------------------------------------------------------------------------------

Loading default preset database 'data\objects.ddb'...

Converting map 'Z:\Games\Westwood\RenegadeFDS\AOWServer\Data\C&C_FieldTS.mix'...

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

Warning: Assertion failed in .\source\converter\westwood\EditorObject.cpp:163 (code 'this->name').

ERROR: Skipping map because of too many warnings.



Conversion finished (1 error, 20 warnings)!

--------------------------------------------------------------------------------

Finished log output at 2007-09-14 19:54:08

--------------------------------------------------------------------------------


Got this today, when I'll was trying to convert an modded FieldTS.mix

Still made an .lvl file which opened.

[Updated on: Fri, 14 September 2007 12:02]

Report message to a moderator

Re: LevelRedit, a .mix to .lvl converter! [message #284361 is a reply to message #284227] Fri, 14 September 2007 12:22 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Please send any maps you cannot convert or where the converted map crashes compressed to yrr@icefinch.net, so that I can look for the error's cause.

Re: LevelRedit, a .mix to .lvl converter! [message #284363 is a reply to message #284227] Fri, 14 September 2007 12:25 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Wow so this is what you been doing.

You never fail to amaze me Neku. <3


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: LevelRedit, a .mix to .lvl converter! [message #284364 is a reply to message #284227] Fri, 14 September 2007 12:33 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Yrr.
Yes, I wanted to do something new and this tool took me only few weeks Smile
ANd it helps me improving other projects, since I know much about .mix, .ldd, .lsd, .ddb, .tdb and .lvl file formats now Wink


Re: LevelRedit, a .mix to .lvl converter! [message #284367 is a reply to message #284227] Fri, 14 September 2007 12:41 Go to previous messageGo to next message
Cpo64 is currently offline  Cpo64
Messages: 1246
Registered: February 2003
Location: Powell River, B.C. Canada
Karma: 0
General (1 Star)
Was that supposed to make sense?

-->
Re: LevelRedit, a .mix to .lvl converter! [message #284386 is a reply to message #284227] Fri, 14 September 2007 13:56 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Straight to the point:

Awesome job!
Re: LevelRedit, a .mix to .lvl converter! [message #284391 is a reply to message #284227] Fri, 14 September 2007 14:12 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
In other news, i loaded up metro_ts.

But this doesnt seem quite right. Happens to every light, and it's obvious whats wrong. Mixup!
index.php?t=getfile&id=4242&private=0

edit: I just checked it out, and it appears to be wrong on at least 3 other maps too. Most likely any.

edit: Also, why are all lights directional? Spotlight would be the weapon of choice.
  • Attachment: swapped.png
    (Size: 23.16KB, Downloaded 2400 times)

[Updated on: Fri, 14 September 2007 14:23]

Report message to a moderator

Re: LevelRedit, a .mix to .lvl converter! [message #284397 is a reply to message #284227] Fri, 14 September 2007 15:21 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

Thanks for reporting that, Slave.
I uploaded version 1.01 now.

Changes:
- Fixed light editor object import/load/save functions.
- Fixed that log file lines were not prefixed with a time stamp Razz


Re: LevelRedit, a .mix to .lvl converter! [message #284406 is a reply to message #284227] Fri, 14 September 2007 16:13 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Hey,

I don't want to spam your topic with something that might be a dumb remark. But I was unsure why the following get's done.

Right after converion, scripts.dll and scripts2.dll show up in the Scripts folder of a package. It's your provided scripts.dll and scripts2.dll from my renegade directory. Wich is pretty much the same file. Is there any reason why this gets done?

Also +1 cookie for the update. Thanks.

edit: and ofcourse i meant "Point" lightning instead of "Spotlight" in my above post. You fixed it the right way, it's all good now.

[Updated on: Fri, 14 September 2007 16:18]

Report message to a moderator

Re: LevelRedit, a .mix to .lvl converter! [message #284411 is a reply to message #284227] Fri, 14 September 2007 16:33 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

The scripts.dll (Custom Scripts) was extracted from the .mix file and the scripts2.dll (Renegade default scripts) is the scripts.dll file from LevelRedit.

Re: LevelRedit, a .mix to .lvl converter! [message #284417 is a reply to message #284227] Fri, 14 September 2007 17:03 Go to previous messageGo to next message
Slave is currently offline  Slave
Messages: 607
Registered: December 2006
Karma: 0
Colonel
Alright, it makes sense now that I know wich file came from where. I just happened to open a map wich had the WW scripts.dll included. Slightly confused me to see the exact same file with 2 different names. Goodnight.
Re: LevelRedit, a .mix to .lvl converter! [message #284442 is a reply to message #284227] Fri, 14 September 2007 18:56 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

I took a look at the skirmish scripts a while back and 90% of the work is done by 3 scripts, MSK_Info_Zone, MSK_Soldier and MSK_Controller.

The real work happens in MSK_Controller which is VERY hardcoded (including object IDs for various objects located on the map)


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: LevelRedit, a .mix to .lvl converter! [message #284446 is a reply to message #284227] Fri, 14 September 2007 20:06 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
FTW Yrr.
All I wanted was a protection method that could stop the noobs from screwing with our maps, now that that is provided I am more then happy.


Re: LevelRedit, a .mix to .lvl converter! [message #284460 is a reply to message #284446] Fri, 14 September 2007 21:06 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
renalpha wrote on Fri, 14 September 2007 21:18

Jerad Gray wrote on Fri, 14 September 2007 22:06

FTW Yrr.
All I wanted was a protection method that could stop the noobs from screwing with our maps, now that that is provided I am more then happy.

WARNING RETARD ALERT


Warning noob alert, be careful as he probably does not know what he is talking about.


[Updated on: Fri, 14 September 2007 21:10]

Report message to a moderator

Re: LevelRedit, a .mix to .lvl converter! [message #284486 is a reply to message #284446] Sat, 15 September 2007 02:59 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
renalpha wrote on Fri, 14 September 2007 23:18


WARNING RETARD ALERT



Thanks for the warning, but we already know you're a retard. Razz



Previous Topic: Dragonade 1.8
Next Topic: [SSGM 4.1 Plugin] AI Dialogue
Goto Forum:
  


Current Time: Sun Nov 24 03:04:31 MST 2024

Total time taken to generate the page: 0.01465 seconds