Puzzle Creator Tech Info, Hacks, and Laughs

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby madcat1030 » Mon Jun 04, 2012 9:24 pm

So... " could you potentially make a password combolock?
User avatar
madcat1030
Not Even A Full Time Employee
 
Posts: 67
Joined: Nov 2, 2008

Registered users don't see ads! Register now!
 

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby HMW » Tue Jun 05, 2012 2:30 pm

Out of the logic gates? Yeah, probably, as in: a row of buttons, some of which must be pressed and others not. You could then either show the wiring to the player so they can figure it out, or hide it away in a box somewhere and show the combination on a wall somewhere in huge, awesome 128x128 "pixels" :D


By the way, the editoritems.txt format got changed with today's update. Attached is an updated version of the custom elements which will work with that, also with (hopefully) properly working XOR.

@sicklebrick: I considered scripts, but for PTI items you can't include custom files (yet...) so that would mean mashing the whole program into RunScriptCode signals. I have done that before for small things, but it's a pain in the southern hemispheres when you need to use strings, which is practically always.
(Involves lots of "self.GetName().slice(...)", using entities with ringing names like "FireUser1SetParentAttachmentMaintainOffsetbrush1modelthingypanel_attach".)
This is how you find out that the max length of a RunScriptCode argument is 256 characters.
Attachments
hmw_pti_items0.7z
updated updated version
(84.53 KiB) Downloaded 1629 times
Sendificate series: Sendificate | A Beam Too Far | Airtime
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
User avatar
HMW
Senior Stalemate Associate
 
Posts: 752
Joined: Feb 15, 2009
Location: Netherlands

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby sicklebrick » Tue Jun 05, 2012 6:48 pm

Aww yeah, didn't think about external files! Glad it seems to be working now though :)
User avatar
sicklebrick
Community Contributor
 
Posts: 823
Joined: Sep 2, 2011
Location: Scotland

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby FelixGriffin » Wed Jun 06, 2012 11:25 am

About different textures: the BSP file sits there for a bit while you enter a title. During that time another program or script could use bspzip commands to replace the textures, which are embedded into the map by PTI. Maybe Old Aperture would be possible...a prop_static test sphere could go into the global_pti_ents to surround everything, and the faith plates and all could use edited instances. The only unfixable problem would be the new-style fizzlers.

EDIT: I've been working on adding in new test elements, like the breakable glass. HMW, do you mind if I include your Sendificator? A modified copy of the script for it could also disable an entity which would otherwise display something like "You need the sendification script from (URL)".
Falsi sumus crusto!
FelixGriffin
Olympian and/or War Hero
 
Posts: 2,419
Joined: Jun 13, 2011


Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby HMW » Fri Jun 08, 2012 12:03 pm

FelixGriffin wrote:
EDIT: I've been working on adding in new test elements, like the breakable glass. HMW, do you mind if I include your Sendificator? A modified copy of the script for it could also disable an entity which would otherwise display something like "You need the sendification script from (URL)".

Sure, go ahead! Keep in mind that you also need to modify the laser instances (both of them) so they can send sendificator tracers.

I do have doubts about that fallback construction though! Showing that to players when they download a map from the workshop, and ask them to download a separate package would not be acceptable IMO. If you're going to do this, then use Sicklebrick's packer thing with it. Looks like that would work fine!

@sicklebrick: I haven't tested this yet, but I can already think of a cool addition: a Python script or something, that sifts through the vmf and included instances, looking for markers in the entity comments that specify what custom stuff it needs.
It would then build a custom packing.txt list for that particular map, so it only packs assets for things you actually use. Nobody likes bloat :)
Sendificate series: Sendificate | A Beam Too Far | Airtime
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
User avatar
HMW
Senior Stalemate Associate
 
Posts: 752
Joined: Feb 15, 2009
Location: Netherlands

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby FelixGriffin » Fri Jun 08, 2012 12:27 pm

Thanks!

And that sounds like a very cool idea. Maybe we should add those comments into the worldspawn of each P2Editor instance.
Falsi sumus crusto!
FelixGriffin
Olympian and/or War Hero
 
Posts: 2,419
Joined: Jun 13, 2011

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby sicklebrick » Fri Jun 08, 2012 8:24 pm

HMW wrote:
@sicklebrick: I haven't tested this yet, but I can already think of a cool addition: a Python script or something, that sifts through the vmf and included instances, looking for markers in the entity comments that specify what custom stuff it needs.
It would then build a custom packing.txt list for that particular map, so it only packs assets for things you actually use. Nobody likes bloat :)


I've been considering building it right into the program itsself (I've included the C# source in the download btw), but I'm back at work this week, so it's baby steps :)
One thing I'm determined to change though is to make the build process and toolchain flow take place after the BSP was created (but before vrad, etc). I.e. allowing the user to load a map and edit it like pakrat or alter the pack list during a build. I think that way would be the least intrusive and most useful :) I've yet to decompile pakrat and figure out how it knows which files are loose and which are .gcf\.pak content though. Any ideas?
User avatar
sicklebrick
Community Contributor
 
Posts: 823
Joined: Sep 2, 2011
Location: Scotland

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby HMW » Sat Jun 09, 2012 9:23 am

My guess would be that it knows how things like textures and models look inside the bsp, builds a list of anything it finds and then matches that against some "official assets" list that is either built in or read from the game files.

I really think it would be easier to invent some sort of referencing mechanism for use in instance files. After all, you'd expect the creator of an instance to know what custom stuff they used.

You could put something like this in the comment field of any entity:
Code: Select all
fudge_pack_assets: {
models/hmw/props/sendificator*
materials/models/hmw/props/sendificator*
scripts/vscripts/hmw/sendificator.nut
}

This would include all of the sendificator-related files.
If you make the schema unique enough, it doesn't even matter where it is in the vmf; a line-by-line scan would find it automatically. (Accounting for the fact that there may be text on the same line before "fudge_pack_assets: {", and after the closing "}".)

(I like FelixGriffin's idea of using the worldspawn for this, but it doesn't appear to remember any comments.)
Sendificate series: Sendificate | A Beam Too Far | Airtime
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
User avatar
HMW
Senior Stalemate Associate
 
Posts: 752
Joined: Feb 15, 2009
Location: Netherlands

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby sicklebrick » Sat Jun 09, 2012 11:58 am

Heh, that's actually a pretty cool idea - not too hard to implement either.
I can think of a few problems off the bat though...
-It's easier to drag and drop files onto the editor (already implemented this)
-You'd still have to write a fair amount of stuff out manually, and I'd have to account for all sorts
-I'd probably have to add some sort of file filtering mechanism. For example, I have stuff like mynewtexture_Copy.vmt, and all my .PSD files kicking about in the same folders. Not sure if it would be quicker to filter an ignore list, or an include list for this.

Your suggestion did give me a pretty cool idea though..
Pre-make a file list, for example.
-Open fudge packer...
-Hit new file..
-Drag stuff on.
-Save as fudge1.txt
-Switch over to hammer...
-add a comment: packer:fudge1.txt
-Reads .vmf, finds fudge1, sends the contents over to BSPZip.

Then it'll autobuild the right content - or even groups of content.
Or if it's a PeTI map, just use default.txt

Maybe even a couple of extra commands, such as
packer:auto , packer:manual
To determine whether or not the packer log window pops up during builds, or will auto-close itsself.

Sounds like quite an elegant solution, huh?
Btw, the new topic's over at:
topic6692.html

Should probably limit the geeking to there before we hijack this thread :D

Edit:
Implemented basically all of that. Works really well, thanks!
User avatar
sicklebrick
Community Contributor
 
Posts: 823
Joined: Sep 2, 2011
Location: Scotland

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby madcat1030 » Sat Jun 23, 2012 11:25 pm

Question: Mainly to HMW, but to anybody else who has played with his items...

How can I make a Single-pulse state changer without using a boxdropper on a button? I want two timed buttons, that when pushed within the limit, cause a gel dispenser to come on forever. I was trying to make a simple single-bit logic circuit, but I can't get it right, in my head or in the game.
User avatar
madcat1030
Not Even A Full Time Employee
 
Posts: 67
Joined: Nov 2, 2008

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby HMW » Sun Jun 24, 2012 7:18 am

Simple:
single pulse state change.jpg
single pulse state change.jpg (90.38 KiB) Viewed 7143 times

(Scroll down if you don't see the two buttons.)

The topmost two gates are connected in a loop so they keep each other activated. (You can't connect a single gate to itself.)
Sendificate series: Sendificate | A Beam Too Far | Airtime
Other Portal 2 maps: Medusa Glare
Portal 1 maps: Try Anything Twice | Manic Mechanic
User avatar
HMW
Senior Stalemate Associate
 
Posts: 752
Joined: Feb 15, 2009
Location: Netherlands

Is there a way to get my *.vmf files into *.p2c ?

Postby K_az » Sun Jul 22, 2012 9:20 am

Hello,

I have unfortunately lost my *.p2c files. I have got *.vmf ones thanks to a "BSP to VMF" tutorial. Is there a way to get my *.vmf files into *.p2c, now? I only use Puzzle editor, not Hammer. Note that I have never opened Hammer and edited my maps with it. So, it could be possible to transform it into *.p2c files! Please, help me, I do not know how to do!

Thanck you!

K_az
K_az
i dont know what brush is but i herd it alot
 
Posts: 1
Joined: Jul 22, 2012

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby ChickenMobile » Sun Jul 22, 2012 9:51 am

K_az, no it is not possible.
Also I don't know why you changed the colour of your text. Quite annoying actually
                             Image
User avatar
ChickenMobile
Senior Stalemate Associate
 
Posts: 2,400
Joined: May 9, 2011
Location: Canberra, Australia

Re: Puzzle Creator Tech Info, Hacks, and Laughs

Postby Carl » Thu Jul 26, 2012 2:57 am

K_az, it wouldn't be too hard to write a program to do that, but it would take some work and I'm too busy. It's probably easier just to load the vmf file in hammer, or play the map in Portal 2, and recreate it in the Puzzle Editor from observation. That should be quite fast and easy, unless you have complex logic.
-----------------------
People may have noticed that I'm making a Style Changer mod for Portal 2's Puzzle Maker that allows you to choose a style from: 1950s, 1960s, 1970s, 1980s, Portal 1, Destroyed, Behind The Scenes, Evil Wheatley, or Clean. Then any Puzzle Maker map you preview or publish will be completely in that style, including elevators, test elements, textures, voices, ant-lines, etc. (Textures, some signs, bottomless pits, underground fizzler particle fields and antlines will not be changed for puzzle makers using a Mac though, sorry. But I tried to make it still look good without the right textures).

The idea is not to add new testing elements, just to change all existing test elements into the equivalents for that style. That way you can take any existing map and just recompile it in the new style without changing anything, and you instantly have a map that looks like it was created in Hammer specially for that style. Or you can change your mind and compile it again in another style at any time.

Other features (PC only): removed entity limit, automatically packing files (compatible with Fudge Packer), faster lighting for previews with full lighting for published maps or if you hold Shift, and you can press Ctrl+F9 to preview the map with entrance and exit elevators rather than just the puzzle. Ctrl+F9 is also needed for exporting the puzzle to Hammer, since the console command will only export the map without the changed textures.

It consists of - 3 exe files: replaced vbsp.exe and vrad.exe, and StyleChanger.exe which just shows the list of styles for you to choose and changes which editoritems.txt file to use; an editoritems.txt file for each style, and a folder of instances for each style. StyleChanger.exe also handles installation (replacing the exe files).

HMW: If you don't mind, I'm also going to make it compatible with your extra test elements.
Carl
I was told I would get $60 if I posted on the forum
 
Posts: 13
Joined: Dec 13, 2007

Registered users don't see ads! Register now!
 
PreviousNext

Return to Puzzle Creator and Workshop



Who is online

Users browsing this forum: No registered users and 3 guests