Amazing zone settings

For developmental things relating to the graphics of the game.
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Amazing zone settings

Post by hoop »

Hi!
Today I was annoyed not being able to concentrate in sumo because of those spinning squares, so I've hacked the zone rendering code and now I can set their rendering as I prefer.
Here are some screenshots:
http://hoop.altervista.org/shots/zone003.png
http://hoop.altervista.org/shots/zone010.png
http://hoop.altervista.org/shots/zone014.png
http://hoop.altervista.org/shots/zone016.png
http://hoop.altervista.org/shots/zone018.png

check http://hoop.altervista.org/zone.html to get the patch, info etc.
enjoy it

EDIT: if your browser doesn't load the images directly open them from the link above

EDIT2: the patch doesn't work with arma 0.3, since the source is a bit different. A working one is posted in this thread. Else check the site above for updates/revisions
Last edited by hoop on Tue Aug 19, 2008 3:03 pm, edited 6 times in total.
QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

very nice work but how is the patch applied? all i get is a window with text in it.
XzL.Smart
Round Winner
Posts: 216
Joined: Sun Apr 30, 2006 4:21 am
Location: Arizona

Post by XzL.Smart »

I cant see any of the images
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

QUARG wrote:very nice work but how is the patch applied? all i get is a window with text in it.
Just download the file, patch arma's source and compile it.
Under linux you'll open a terminal and do

Code: Select all

cd /your/arma/source/directory
patch -p1 -i /path/to/zones.patch
If you're using windows google for 'patch', I can't help you there.
XzL.Smart wrote:I cant see any of the images
what do you see instead??
Last edited by hoop on Mon Aug 18, 2008 12:41 am, edited 1 time in total.
User avatar
Shock
Core Dumper
Posts: 124
Joined: Sat Aug 16, 2008 11:16 pm
Location: Desert, Arizona

Post by Shock »

ya i can't see anything either its just a blank screen
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

try to copy the link and paste it on the browser
Or else download the image.
Or finally open the site linked and watch the shots from there.
They are just png images, that's impossible you can't view them, I think it's altervista blocking internet explorer :roll:
Last edited by hoop on Mon Aug 18, 2008 1:03 am, edited 2 times in total.
User avatar
Shock
Core Dumper
Posts: 124
Joined: Sat Aug 16, 2008 11:16 pm
Location: Desert, Arizona

Post by Shock »

i think it was just slow with loading
those zones look really cool hoop and much less distractive
User avatar
Alpha Centauri
On Lightcycle Grid
Posts: 42
Joined: Wed Jul 09, 2008 8:09 pm
Location: United States
Contact:

Post by Alpha Centauri »

hoop wrote:try to copy the link and paste it on the browser
Or else download the image.
Or finally open the site linked and watch the shots from there.
They are just png images, that's impossible you can't view them, I think it's altervista blocking internet explorer :roll:
It's Altervista blocking referrals from other sites, as you can see if you click on one of the links from the forums, while copying and pasting the link or following it from your site works fine.
Nexus9 server ultra-admin.
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

it's showing http://images.altervista.org/images/void.gif instead of the requested image if you don't have a referrer from their own site

which terribly sucks, i think you should change hosts
QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

Just right click and open in new window.
When i DL it the file ends up being a .text file. Is this right?
Last edited by QUARG on Mon Aug 18, 2008 2:49 am, edited 1 time in total.
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

yea, or just install mozilla firefox :P, it works here
I'll attach a new screenshot so, with a special movie pack!
Attachments
zone_segments 12
<br />zone_seg_length 2
<br />zone_height 10
zone_segments 12
zone_seg_length 2
zone_height 10
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

QUARG wrote:When i DL it the file ends up being a .text file. Is this right?
yes, a .patch file is a normal plain text file
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

I think you should be doing sanity checking on sg_zoneHeight/sg_zoneBottom so that a user can't wind up with oddly shaped zones, and then for height to truely be height, I think

Code: Select all

+                     {0,0,sg_zoneHeight,0},
should be

Code: Select all

+                     {0,0,sg_zoneBottom+sg_zoneHeight,0},
since the coordinates appear to be absolute.
Image
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

Tank Program wrote:I think you should be doing sanity checking on sg_zoneHeight/sg_zoneBottom so that a user can't wind up with oddly shaped zones, and then for height to truely be height, I think...
since the coordinates appear to be absolute.
I thought they were absolute too, since they were called 'bot' and 'top' before, but after a short test I realized that 'top' should've been called height.
Try it and you'll agree
Monkey
Match Winner
Posts: 759
Joined: Thu May 22, 2008 12:36 am
Location: England, UK

Post by Monkey »

Hoop, can you find an image posting site or something and post those screenshots again.
Playing since December 2006
Post Reply