Cogs > Cogs Modding Forum

layout question

(1/3) > >>

1024:
Hi, I'm new to the game, played several levels and thought I'd have to try editing levels. I tried to decrease the standard 4x4 grid to 3x3 - it seems to work - but the board around it is the same size. How do I change that? Also, will there be any detailed info on how to create layouts for the boards? Thanks in advance.

admin:
Hey, 1024 -

The Cogs engine doesn't support scaling of geometry, so if you want to make a 3x3 frame for a new board, you'll need to build it (i.e., it won't let you just scale the 4x4 frame by 75%).  The existing 4x4 boards are saved in a custom .strip format that's designed to make it fast to load -- but there are no good tools out there for editing it.  Thankfully, Cogs also supports triangulated .obj files with position, normal, and texture coordinate data, which you can export from just about any modeling software.  So in short, here are three options:

  - Using 3D modeling tools like Maya, 3D Studio Max, or a free alternative like Blender, build your own 3x3 board.
  - Or send an email to rob@lazy8studios.com and I'll send you the .obj file for the existing 4x4 board so that you can make some simple edits using one of the tools mentioned above.
  - Or send an email to rob@lazy8studios.com and I'll scale the model for you and send you an .obj or .strip file that you can use.

Glad to hear that you're trying to make some puzzles of your own!  Let me know if you find any of the documentation confusing or if you need any other assistance.

  - Rob
    Founder, Lazy 8 Studios

Brendan:
You could also use one of the existing boards like a 3x4 (MESH  data/models/board3x4-01.obj or board3x4-02.obj under the MODELCOUNT) and block off a row with unmoveable tiles. Set the slideOK to 0000 for their positions and use LIBMESH meshBlock for gadget geometry.  Something like twogears.puzzle is a good example.

1024:
Many thanks for your replies. I like level editing, in fact, usually first thing I'm looking for in a game is a method to create (and maybe share) own levels, and this game has it while being fun at the same time - a rare combination.

I used to be experimenting around with modeling but I found it difficult and time consuming. I might give it a go again later but not this time. Nice that you offer your own models for editing though. Blocking off a line of the 3x4 seems the best solution so far.

I think the documentation is fairly clear, however I didn't work out at first that the layouts are somewhat fixed - as I see now. I could make layouts but the borders seem fixed - specific models; first I thought they're generated somehow. For example, I don't think I could make a 7x7 puzzle now (not that I want to, but as an example). Judging by your replies you seem to be the game developer(s) or close to them, and I heared  you're planning expansion packs.  I know this is no request feature forum, but I'd love a way to be able to contsruct my own border using tile-sized pieces that fit together. I know I could model these myself - maybe I will one day - but it's easier to ask here.

Also, thanks for your support and with ongoing support I can guarantee at least a few puzzles in a couple of weeks/months or so. My ultimate plan is to make a cube level where the camera is in it and you have to work on the inside of the cube... but that's just a long-term plan so far.

edit: also, just for the lol


managed to rotate it, but seems a bit shifted away


I know I could just copypaste from a default level, but I'm trying to learn here.
Now that I think of it, some reference on sizes would be nice (how big is a tile, the boarders etc.)

Brendan:
Ah, that's an easy one - every tile is 1x1 game units.  It's mentioned in the beginning of the tiles section in the wiki, maybe we can make that more apparent.

It looks like your layout is still set up in positions for a 4x4 puzzle, all you need to do is (correct me if I'm wrong Rob) add another .5 to each of the posX values in your board layout, which should shift them all half a unit to the right.

Dude, the modular board is a great idea and would not be hard to do using our existing models.  Let me get back to you on that one. :)  And yes, Rob (admin) and I are the developers.

Navigation

[0] Message Index

[#] Next page

Go to full version