New discovery: Unlimited Draw Distance

This is too big to hold off.

User avatar
dummiesboy
MM2X Super Active User
MM2X Super Active User
Posts: 2425
Joined: Thu Jul 24, 2008 2:00 am
Location: ´Murca

New discovery: Unlimited Draw Distance

Postby dummiesboy » Sun Sep 11, 2011 9:51 pm

I know, I said i would post a topic about the mirror trick for draw distance in October. But this is way different. And it's too big of a discovery for me to hold off telling about it.
I've found a way to get the same draw distance with every view in the game, not just the mirror! Take a look for yourself:
Image
Image
Image
Image
Image

This draw distance is achieved by opening your profile's .cfg file in the "players" folder with a hex editor and editing 2 decimals, and emptying the city's cpvs file, so the whole city renders. These are the decimals you need to edit:
Image
Change those to "pp". Not sure what that turn the draw distance into, but it's big.

As cool as this is, it isn't perfect. MM2 seems to have a limit on how many blocks can be viewed at one time, because some blocks don't appear until another one is out of the view, etc. Also, the frame rate dips down to 20 sometimes, with an average of 35. Both of these issues could be fixed though, with a cpvs file that rendered the proper blocks. However, I don't know of any program that can do something like that.

Despite these flaws, I still wanted to let people know about this new trick. Maybe we can all work together and polish this up some day, because at the moment, it's pretty rough cut.
In the very least, this could be used for screen shots. ;)


PS: This also works in MM1, with the exact same edits the the exact same file for that game. As of now, I don't know how to render everything at once in that game, so I can't comment on how well it would work. However, considering how well MM1 runs, (I can get 16xQ AA, 16x AF, and even 8x TAA with a minimum of 55 fps, and with the same settings, MM2 goes down to 30) I can say pretty confidently that this would work very well with a .ptl file (MM1 version of cpvs) that renders the whole city at once. This is what it looks like as of now:
Image
Image

zoot
MM2X Super Active User
MM2X Super Active User
Posts: 2430
Joined: Sun Jun 14, 2009 2:00 am
Location: United States

Postby zoot » Sun Sep 11, 2011 10:19 pm

Great finds, dude! Amazing work! Hope mm1 get's fixed. :)
Administrator at MMarchive | Part-Time MM2x Administrator
Image
Image

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15681
Joined: Thu May 31, 2007 2:00 am
Location: Italy
Likes received: 1 like
Contact:

Postby Franch88 » Sun Sep 11, 2011 10:52 pm

I remember that you explained the way of the mirror editing, that through it is possible to get high visibility distance, but this is a really great discovery. :) Maybe the player profile files can allow other possibilities.
The PSDL terrain blocks viewing in far distances problem is already known, it's an issue of the game, the screenshots look good, though. Obviously this will low the FPS number causing lag. You think that both these could be fixed through the .cpvs files?
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
Silent1Unknown
MM2X Super Active User
MM2X Super Active User
Posts: 2472
Joined: Fri May 23, 2008 2:00 am
Location: Canada
Contact:

Postby Silent1Unknown » Mon Sep 12, 2011 1:26 am

Nice find! I guess this can be done to any city? It would most useful for NYC. ;)

Image BEST MM2 SCREENSHOOTER | BEST PHOTOSHOPPER
Image MOST FRIENDLY MEMBER | BEST MM2 WEBSITE

Image

User avatar
HummersRock
MM2X Super Active User
MM2X Super Active User
Posts: 2152
Joined: Fri Dec 01, 2006 1:00 am
Location: Floating in The Land of Colours
Contact:

Postby HummersRock » Mon Sep 12, 2011 2:19 am

And now there will be a flood of pictures in the screenshot section as everyone tries this. :P

This is really cool. I'm gonna go try this now.

EDIT: Hmmm...I haven't got it to work right. The visibility/fog is all screwed up. :?
[url=http://bit.ly/znpgtp][color=deepskyblue]My MM2 Creations[/color][/url] | [url=http://bit.ly/o9c3][color=red]My MM2 Youtube[/color][/url] | [url=http://bit.ly/yfqjeq][color=green]My DeviantArt[/color][/url]

User avatar
Silent1Unknown
MM2X Super Active User
MM2X Super Active User
Posts: 2472
Joined: Fri May 23, 2008 2:00 am
Location: Canada
Contact:

Postby Silent1Unknown » Mon Sep 12, 2011 2:28 am

Can we have a mod please? :biggrin2:

Some people dont have hex editors. Or knowledge of how to edit hex for that matter. :oops:

Image BEST MM2 SCREENSHOOTER | BEST PHOTOSHOPPER
Image MOST FRIENDLY MEMBER | BEST MM2 WEBSITE

Image

User avatar
dummiesboy
MM2X Super Active User
MM2X Super Active User
Posts: 2425
Joined: Thu Jul 24, 2008 2:00 am
Location: ´Murca

Postby dummiesboy » Mon Sep 12, 2011 3:15 am

Franch - Yeah, without rendering blocks you can't see, it won't make any disappear, and increase fps.

Silent - Of course, any city will work with this. And about a mod... I may have to think about that...

Hummers - Haha, yeah. And about your issue, I know what causes it.


Apperently, I was half wrong about which decimals that need edited. You only put "p" in the second one, the first one controls fog scaling. Dunno why I didn't have any problems, but everyone else who tried did. So if you have been having any issues with fog, this is why.

EDIT: Yeah, I just realized I was backwards with what needs changed. Sorry about that.
Last edited by dummiesboy on Mon Sep 12, 2011 9:23 pm, edited 3 times in total.
Image

User avatar
hastantyo
MM2X Active User
MM2X Active User
Posts: 990
Joined: Fri Dec 05, 2008 1:00 am
Location: Bekasi, Indonesia
Likes received: 1 like

Postby hastantyo » Mon Sep 12, 2011 7:47 am

HOLY CRAP! We can see whole SF! 8O Amazing!! :D
[img]http://i463.photobucket.com/albums/qq357/hastantyo/signature-1.jpg[/img]

User avatar
Kunal2045
MM2X Very Active User
MM2X Very Active User
Posts: 1185
Joined: Sat Aug 29, 2009 2:00 am
Location: New Zealand

Postby Kunal2045 » Mon Sep 12, 2011 8:04 am

HOLY CRAP! We can see whole SF! 8O Amazing!! :D
+1 :D
[align=center][color=black]Sig[/color]
[img]http://www.imgweave.com/view/4838.png[/img][/align]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15681
Joined: Thu May 31, 2007 2:00 am
Location: Italy
Likes received: 1 like
Contact:

Postby Franch88 » Mon Sep 12, 2011 8:34 am

This can't be made as mod, as .ar file then, because clearly the procedure is compeltely different than usual. The profile .cfg file (called player0.cfg for the first player account, player1.cfg for the possible second one, and so on) has the game and hardware settings (can notice the audio card/drivers name, for example) that you've set, so it's always different for eveyone. This edit with an hex editor is really simple and easy to do however, everyone are able to do it. Of course this works with any city, remember that's an edit done to the game, not to a specific city.
I'll check this trying to change the values as Dummiesboy explained in both types. Remember that in your screenshots you're using your MM2 Revisited V4 mod, that change the for values, maybe for who isn't using it and so has the default values, or is using the Shader Mod 2, the fog can look worse because it's indeed already more "dense" than in your mod.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

Pabolo
MM2X Newbie
MM2X Newbie
Posts: 53
Joined: Mon Dec 05, 2005 1:00 am

Postby Pabolo » Mon Sep 12, 2011 10:26 am

Nice discovery :) Congratulations dummiesboy :aplausos: :afirmar:

User avatar
wanna_indonesian_bus
MM2X Junior User
MM2X Junior User
Posts: 177
Joined: Thu Jun 23, 2011 2:00 am
Location: Jakarta, Indonesia
Contact:

Bla bla bla...

Postby wanna_indonesian_bus » Mon Sep 12, 2011 11:39 am

How to do it?
[img]http://home.hkstar.com/~ckctp/busstop1.gif[/img]

User avatar
Silent1Unknown
MM2X Super Active User
MM2X Super Active User
Posts: 2472
Joined: Fri May 23, 2008 2:00 am
Location: Canada
Contact:

Postby Silent1Unknown » Mon Sep 12, 2011 2:37 pm

So let me see if I got this....

1) Open player#.cfg file with hex editor and change the "z" to a "p".
2) Open sf.cpvs or london.cpvs and deleting everything in it and then resaving? (Can this be done with NotePad?) And I guess these are the ones found in city folder?


EDIT: Guess I did something wrong. Also, I didnt see the "z", so I just changed the fourth character to "p".

Image BEST MM2 SCREENSHOOTER | BEST PHOTOSHOPPER
Image MOST FRIENDLY MEMBER | BEST MM2 WEBSITE

Image

User avatar
dummiesboy
MM2X Super Active User
MM2X Super Active User
Posts: 2425
Joined: Thu Jul 24, 2008 2:00 am
Location: ´Murca

Postby dummiesboy » Mon Sep 12, 2011 9:21 pm

Alright then, since so many people are having issues doing it themselves, I've put together a quick package that should work. You'll want to backup your players folder, because this will replace your profile. Nothing is unlocked either, this is just to help out people who are having issues.

http://www.mediafire.com/?drqwjjuyb7ah5wi

I haven't anything with the fog scaling (I don't know how to work it yet, "p" was just a random letter), so unless you have RV4, you will see fog in the distance, because of how I made it.. As I've said, this idea is pretty rough cut at the moment. :wink:
Image

User avatar
iamnotabot
MM2X Newbie
MM2X Newbie
Posts: 5
Joined: Fri Jun 25, 2010 2:00 am

Postby iamnotabot » Mon Sep 12, 2011 10:06 pm

also need rv4.1 for sf_fog fix or colors are messed up