67428ffc72929

67428ffc73912
6 Guests are here.
 

Topic: Citadel - System Shock Fan Remake
Page: « 1 ... 30 [31] 32 ... 63 »
Read 226054 times  

67428ffc742aeRocketMan

67428ffc7431a
If you want to do any "legacy" support testing, I have XP :)

67428ffc74487JosiahJack

67428ffc744e2
Been working on the grid puzzle code.  Works mostly.  Did you know there are 3 different types.

Having trouble with coming up with an algorithm for flowing the power though.  Pockets of power get trapped currently.

67428ffc74627JosiahJack

67428ffc74675
Ok.  Looks like I'll be using a 4-way floodfill algorithm using a queue (as opposed to a stack).  Before calling it, I'll reset the grid puzzles powered[] states to zero.  Seems to be best suited for arbitrary sized grid, arbitrary start point, and arbitrary end point.

Node types:
Off (blank)
Standard (x or +)
And (takes two adjacent powered cells to set powered state to true)
Bypass (acts as a + by always letting power through)

Now for the interesting part of setting the node images correctly so that power lines only connect the powered adjacent cells.

Crap this game is complicated.  :sly:

67428ffc74b05dertseha

67428ffc74b61
Been working on the grid puzzle code.  Works mostly.  Did you know there are 3 different types.
With "3 different types", do you mean what kind of side effects are possible? Then there would be even 5.
Documented here: https://github.com/inkyblackness/ss-specs/blob/master/levelObjects/09_Panels/levelPanelEntry.md#block-puzzles (under paragraph "Puzzle Layout")

By the way (talking about complicated): After I figured out the different side effects, I also saw that the cursor changes shape and color, so you can deduct just from that what kind of puzzle you're dealing with, without touching any node.

67428ffc74d4cJosiahJack

67428ffc74d9c
I mean the 3 different types of nodes. 

The puzzles have different side effects, yes, corresponding to chess rules (loosely):
Pawn(none): only flip state of clicked node. (1 node)
King: flip state of adjacent nodes vertically and horizontally (up to 4 nodes)
Knight: flip all 8 adjacent nodes, including diagonals.
Rook: flip state of all nodes horizonatally and vertically across puzzle (up to 10 nodes]
Bishop: same as rook but only diagonally (up to 8 )
Queen: combination of Rook and Bishop (up to 18 nodes changed at once)

Note max width and height used is 7 and 5 respectively.  Max node changes shown not typical due to puzzles having multiple Off state nodes, And (takes 2) nodes, and Bypass nodes (user can't change, acts as +).  Actually if you include the off state, that makes 4 different node types.

Interestingly, the game only uses Pawn(none), King, Rook, and Bishop.

Side note about cursor colors: yes cursor can change colors and types within puzzles, normal hud usage, for different weapons, and when near mouse movement points in the edges of the view.  The cursor code for Citadel does not yet include this (currently uses green crosshair at all times).

Also, colors of individual grid puzzles' node outlines can vary such as gray, blue, and green.  Again, complicated.  This game is so great for that I think.

67428ffc75057JosiahJack

67428ffc750ab
Just finished adding dynamic object pooling for useable items.  Whenever a useable is dropped, it automatically finds any deactivated objects of the same type on the level and reactivates and repositions them for tossing.  If it can't find any free objects it Instantiates a new one, one of the only times an Instantiation will ever occur in Citadel.  This could occur if the player goes around emptying enemies or crates and throwing all the items on the floor.

This works well with the saved game since any items picked up are never actually deleted, only deactivated.  Loading a saved game takes milliseconds since it merely reverts active states and positions based on unique object ID's.

Oh and I've updated the MFD so that it can remember the last used tab for a particular function.  This lets you customize where you want to see which information and then your rig remembers it for you.


A further note on Pooling:  re-using deactivated gameobjects means that I can avoid Destroy()ing gameobjects.  This avoids Unity's automatic Garbage Collector that frees up memory.  Why is this good you ask?  Because Garbage Collection causes a spike of poor performance while Unity cleans up memory which can cause lags at random uncontrollable times.  Minimizing garbage collection ensures smooth lag free framerates at the expense of minimal memory increase.  I'd always trade bytes for frames for you all.
67428ffc75201
Garbage collectors ftw...except Unity's, by the sound of things.

The more I hear about Unity the more I'm dissuaded from pursuing anything with it.

67428ffc752e0JosiahJack

67428ffc7532c
You have to be willing to make everything from scratch...almost.

Oh and baked lighting is broken for the most part.  No way to make the baked results match the realtime lighting.  This makes the WYSIWYG principle which is supposedly a core Unity feature useless.  Baked results always end up brighter even uf you disable bounces and GI amd all that Jazz.  Even so, your 3D model must be flawlessly made or else you will get black streaks in random places.  There can't be any such thing as a shared UV.
« Last Edit: 03. March 2017, 12:23:12 by JosiahJack »
67428ffc755b1
Unity just have this whole flair of something someone build in a garage.

67428ffc756e2icemann

67428ffc75730
From the Kickstarter's I've backed which went with Unity - The majority had to make many of their various systems for things from the ground up.

On the positive side - Once you have a working system in place for something you can then re-use that for other projects later. Much like straight up coding projects. You tend to have a FAR greater hold on things when you do them yourself also.

67428ffc75a6cJosiahJack

67428ffc75ac1
Unity just have this whole flair of something someone build in a garage.

Ya that's a fair assessment.

...You tend to have a FAR greater hold on things when you do them yourself also.
This!  8)

I would argue that is what makes Unity great.  It gives great flexibility, even if it comes at a cost.

67428ffc75d37ZylonBane

67428ffc75db9
Isn't Unity the engine that doesn't natively support freeform terrain? Kind of a problem for a game set in a space station.

Having trouble with coming up with an algorithm for flowing the power though.
The puzzle grids are so small I don't see why you wouldn't just use a brute-force algorithm:

clear all cells to unpowered
do {
     iterate over entire grid, powering cells connected to powered cells
} until (no new cells powered)

67428ffc75ec2Ghoul_RUS

67428ffc75f10
Woah. I just jumped on this SS series train, and what am I seeing first? The remake of the original, that almost complete, will feel like an original, but more comfortable for the new players (at least it seems that way). I simply cannot wait till this will be released! I still have so much to see and feel with this game. I'm glad I joined now, looks like it's the best times for SS series, from what I can tell!
P.S. Also, I have a question in regard of weapons model. How do they look like? I sure hope it's not just some pixels in bottom of a screen, but a full weapon model (with hands preferably)

67428ffc75fdbRocketMan

67428ffc76026
I've come to trust Josiah's judgement on this project so I'm sure he'll get it right.  IMO the weapons in SS were rather underwhelming, as you said, just being a little sprite at the bottom of the screen.  I don't think anyone has any particularly fond attachment to that, since most of the time you couldn't even see the damn thing with all the interface crap in the way. 

67428ffc760b7JosiahJack

67428ffc76102
Stars have been updated, and now they rotate.  8)

67428ffc7618eRocketMan

67428ffc761da
But do they twinkle?  That's important  :oldman:

67428ffc7639eVegoraptor

67428ffc763f2
But... but, atmospheric refraction... in space...

67428ffc764aeZylonBane

67428ffc764f9
Well you are looking at them through dirty windows.

This is actually something else Citadel could improve on-- in SS1 all the "windows" were just empty portals into space. Citadel could visualize them somehow. A blue tint, reflectivity, bloody handprints, that sort of thing.

67428ffc767e4JosiahJack

67428ffc76835
But... but, atmospheric refraction... in space...
No the twinkling is a result of the eye having difficulty focussing on a timy point of light, even more so when there is light polution such as near cities or large space stations.  Also, the rotation of the space station causes focus to be more difficult.

Good point ZB...I think perhaps some subtle effects combined with actual window thickness would alleviate the holes in the statuon appearance they now have.

Speaking of which, on to the problem of Saturn outside the window.  Assuming Citadel to be in stationary orbit around Saturn, an altitude of 52797562m is estimated.  Based on the height of Saturn from pole to pole of 108728000m, an angular size of 91.7deg can be obtained.  This means, that for the 2hrs it takes Citadel to complete one revolution at 0.05deg per second (looks nice), a solid 30.3min of that time would have Saturn fill the entire view out one side of the station.

There are two options I can think of:
1)  Increase Citadel's orbital altitude to make Saturn more visually appealling with the excuse of needing more acceleration for the mining laser to have efficient effect or some such silliness.

2)  Increase the station's revolution speed...and number of barf bags on board.

I'll probly end up just making Saturn somewhere in the pleasant realm of an angular size of ~65 or 70deg.  One other note, based on the altitudes of Saturns rings, Citadel in stationary orbit is only at an altitude 11% past the starting altitude of the rings so regardless of where I "move" the station out to it will definitely still be within the altitudes of the rings.  Perhaps distortion via space dust could explain why Saturn appears smaller than 91deg.  Anyhow, geeky fun.

67428ffc76b8aZylonBane

67428ffc76bdc
No the twinkling is a result of the eye having difficulty focussing on a tiny point of light...
Err, that's the first time I've ever heard that explanation. Most explanations are pretty much this:
http://earthsky.org/space/why-dont-planets-twinkle-as-stars-do

67428ffc76c9cJosiahJack

67428ffc76ced
I've always been nearsighted so could just be me, but thought I read that somewhere.  Might just be why staring at a star makes it seem blurry/fade in and out.  Anyhow, you still have the soon to be reasonably thick glass windows providing refraction (and protection from rogue space dust).

67428ffc76dceJosiahJack

67428ffc76e19
Side note to you die hard fans out there, in the series, Citadel is described as having an L6 orbit.  This is clearly a fictional orbit.  L refers to a lagrange point, of which there are only 5 defined for a two-body system.  Unless the future updates their terminology for Lorbits to include all lagrange points sequentially for a given system, L6 is clearly fictional and provides no further insight for accurate positioning of the station (ahem, well positioning of saturn outside the station that is, it is a matter of appearance).

Your name:
This box must be left blank:

Look at you, hacker: a ____ creature of meat and bone!  (Fill in the missing word):
6 Guests are here.
Are we having fun yet???
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
67428ffc77622