Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: VirtualTT on March 30, 2009, 07:43:42 am

Title: Normal Flipper v1.1.5 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on March 30, 2009, 07:43:42 am
Description: Normal Flipper is a mapping tool to make one-way-through polygons, that is impossible with PW or any other map editors.
See demo map (http://tms.jrgp.org/?map=1132) and demo map 2 (http://tms.jrgp.org/?map=1133) and demo map 3 (http://tms.jrgp.org/index.php?action=map_rate&map=1136). And some real maps that are using this feature: ctf Glory (http://forums.soldat.pl/index.php?topic=33256.0) and ctf Adacia (http://forums.soldat.pl/index.php?topic=33620.0)

(http://img199.imageshack.us/img199/5085/normalflipper.png)

Requirements: none.

Installation: unrar to Soldat folder.

Download program: attached (http://forums.soldat.pl/index.php?action=dlattach;topic=33508.0;attach=21625) | mirror 1 (http://www.4shared.com/file/132146706/2d153b90/normal_flipper_v115.html) 58 kb

Download source (cpp): attached (http://forums.soldat.pl/index.php?action=dlattach;topic=33508.0;attach=21626) | mirror 1 (http://www.4shared.com/file/132146707/5a120b06/normal_flipper_v115_source.html) 33 kb

FAQ:

Q: Never heard of any one-way-through polygons. How does it work?
A: It inverts normal to сertain side of the polygon so collision won't be detected.

Q: Are one-way-through polygons glitchy?
A: Of course this feature isn't official, but they work almost without any problems. Using OWT polygon is much more relible then to use teleport.

Q: How to use Norml flipper?
A: Open compiled map, select wanted polygon and flip normal to the side you whant to make OWT. Save the map. You can see number of selected polygon in PW's properties pannel. (http://tms.jrgp.org/index.php?action=download&map=1132&sa=pic)

Q: Why nobody ever used them before?
A: Dunno. This idea isn't my actually. About two years ago Anna showed me some experimental map with such polygons made with some hex editing.

Q: Is there any problems with Normal flipper?
A: Do not recompile compiled maps with fliped normals - they are getting screwed. If you want to update your map compile uncompiled version and then use flipper with compiled version again.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: Dusty on March 30, 2009, 07:51:56 am
It's quite easy to pass the poly from the wrong side. Otherwise this is pretty awesome hehe!
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on March 30, 2009, 07:55:36 am
Can't say that is quite easy, but that is only the metter of demo map anyway.
The use of several polygons makes getting back almost impossible.

[EDIT]
just check out demo map 2 (http://tms.jrgp.org/?map=1133)
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: jrgp on March 30, 2009, 11:05:12 am
Cool work. I've added it to the Fan Apps list.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: Crescendo on April 04, 2009, 09:56:55 am
Doesn't start up for me, it comes up with an error saying something like "collateral accessing is erroneous", my OS is Vista.
Title: Normal Flipper v1.1.0 test version is available!
Post by: VirtualTT on April 04, 2009, 10:30:08 am
Could you post screenshot with error message?

[EDIT]
So the real mapping expirience showed that using flipper the way it is now could be a big problem: it's easy to flip few polygons, but when it comes to real maps, you need to do this with 20-30 polygons every time you compile a map... So i decided to make improved version with simple scripting support. Test version is available.
Bugs fixed:
- some startup issues
- polygon number edit box couldn't process four-digit numbers

(http://img19.imageshack.us/img19/8291/nf11test.png)

Requirements: none.

Installation: unrar to Soldat folder.

Download: mirror 1 50 kb <Test version>

Script structs:
Code: [Select]
<full path to map file>
<poly number>-<normal to flip>
<poly number>-<normal to flip>
...
scripts are being saved as Unicode (UTF-16) text files with .nfs extention.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: DarkCrusade on April 04, 2009, 01:38:02 pm
AWESOME thing man, now you dont need 220 polygons for OTW :)

To the thing that you can get back: copy the same polygon into itself and it should work :)
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: Mr. Domino on April 04, 2009, 02:09:59 pm
That's pretty neat. Reminds me of Bakuretsu Muteki Bangaioh, and for a while I wished I could have polygons which exhibit multiple properties such as this. Off hand, this would be perfect for duckhunt servers, and I'm sure other uses will come into play with some experimentation.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on April 06, 2009, 09:23:17 am
Now i'we done what i should have done from the begining: normal flipper now shows real polygons instead of ugly numbers.

(http://img18.imageshack.us/img18/8291/nf11test.png)

Requirements: none.

Installation: unrar to Soldat folder.

Download: mirror 1 50 kb <Test version>
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: ~Niko~ on April 06, 2009, 10:07:38 am
lol awesome. the only problem  I see is the propulsion and that bullets can't go through, but grenades get an extra speed.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: zakath on April 06, 2009, 10:12:46 am
you can use only player colliders if you want to have one way with bullets that go through.
Title: Re: Normal Flipper v1.0.0 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on April 06, 2009, 11:49:15 am
or you can place colliders infront of OWT poly to prevent nade throwing
Title: Normal Flipper v1.1.0 (with source code) is officially updated
Post by: VirtualTT on April 09, 2009, 04:51:10 am
Ok Normal flipper now is officially updated to v1.1.0
Changes v1.0.0-v1.1.0
Title: Normal Flipper v1.1.1 HOTFIX -_-
Post by: VirtualTT on April 11, 2009, 11:17:23 am
v1.1.1
Title: Re: Normal Flipper v1.1.1 (with source code) - a tool to make one-way-through polys
Post by: DarkCrusade on April 11, 2009, 11:18:58 am
Nice, I like it :)
Title: Normal Flipper updated to v1.1.2
Post by: VirtualTT on April 28, 2009, 09:56:08 am
Normal flipper updated again!
Changes v1.1.1 - 1.1.2
Title: Re: Normal Flipper v1.1.2 (with source code) - a tool to make one-way-through polys
Post by: chutem on May 28, 2009, 01:06:30 am
Doesn't work

I get a window which says 'A tool to make OWT polygons has stopped working' and it blathers on about trying to find a solution.

When I tried 1.1.1 it ran fine but when i went to patch the map, it said patch operation failed.

Vista Home Premium.
Title: Re: Normal Flipper v1.1.2 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on May 28, 2009, 02:37:25 am
Could you post the map and the *script* (or just tell what polygons you want to transform), i'll see what i can do.
Title: Re: Normal Flipper v1.1.2 (with source code) - a tool to make one-way-through polys
Post by: chutem on May 28, 2009, 05:11:48 pm
Attached.

It should be noted that the error with 1.1.2 happens as soon as I double click the .exe
Title: Re: Normal Flipper v1.1.2 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on May 30, 2009, 12:28:18 pm
ok... i've performed some bugfixing... i hope that new version will work fine...
NF v1.1.3
Also since you are using Vista and Soldat is located in Program files NF might be blocked by UAC.
Title: Re: Normal Flipper v1.1.2 (with source code) - a tool to make one-way-through polys
Post by: chutem on May 30, 2009, 05:53:54 pm
Cool it works fine now, thanks.
Title: Re: Normal Flipper v1.1.3 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on May 31, 2009, 03:13:18 am
Great.
So Normal Flipper was officially updated to v1.1.3. Source code for new version is also available. Links are in the first post.
Title: Re: Normal Flipper v1.1.3 (with source code) - a tool to make one-way-through polys
Post by: chutem on May 31, 2009, 05:29:52 pm
Found a couple of bugs while using NF 1.1.3:

1) When you go to Script > save as script, it says it will save it as .nfs, but if you don't put .nfs on the end yourself it saves it as .PMS
2) When you use Script > load script, the last number doesn't show up in the output window, e.g. it will be like
5-2
6-3
7-

This happened whether I loaded a script saved as .nfs or .PMS
Title: Re: Normal Flipper v1.1.4 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on June 01, 2009, 04:04:59 am
Found a couple of bugs while using NF 1.1.3:

1) When you go to Script > save as script, it says it will save it as .nfs, but if you don't put .nfs on the end yourself it saves it as .PMS
2) When you use Script > load script, the last number doesn't show up in the output window, e.g. it will be like
5-2
6-3
7-

This happened whether I loaded a script saved as .nfs or .PMS

1. I was unable to trace this bug, since this never happened to me. However i've added code that forcibly changes extension to .nfs
2. Fixed.

Normal Flipper v1.1.4
Title: Re: Normal Flipper v1.1.4 (with source code) - a tool to make one-way-through polys
Post by: chutem on June 01, 2009, 07:29:12 pm
Now all you need to do is integrate it into polyworks :P
Title: Normal Flipper v1.1.5 released
Post by: VirtualTT on June 16, 2009, 02:12:22 pm
ok... here is another bugfix release...

-Fixed bug with incorrect auto-inserted script file name in Save script as... dialog.
-Fixed bug with duplicated Recent maps.
-Fixed Acces violation when trying to Reload map data if no map was loaded before.
-Fixed Acces violation when trying to Patch map if wrong map name was specified in the script.

see first post for download link

The more i'm trying to improve NF the more bugs it appears to have...  :( I don't have any beta-testers so i just deal with the issues that i'm finding while mapping...
Title: Re: Normal Flipper v1.1.5 (with source code) - a tool to make one-way-through polys
Post by: DarkCrusade on June 17, 2009, 11:18:43 am
Well, I didn´t get how to use it and I refuse that I don´t use it anymore for my maps since ctf_VanishingPower that I´ve sent you, VTT :) I guess I will check the next version then and see whether I get it then ;D
Title: Re: Normal Flipper v1.1.5 (with source code) - a tool to make one-way-through polys
Post by: VirtualTT on June 17, 2009, 11:43:02 am
I don't think there will be any changes in the interface in new version when (and if) it will be released. I just don't know how to make it even simpler than it is now. Basically the only way to improve UI is to integrate it into map editor. So you need to wait untill Soldat Map Studio will come out....  ;)