|
Post by Super Admin on Sept 13, 2014 19:49:37 GMT 1
I am little lost here, can you give me more details of what exactly not working with invoke method? And what with states you have problem, need more info about that. And about delay, if you use time scale set to 0 then you can't use wait action or anything that is called in update function because time scale 0 will stop frame rate and none function can't be called frame related. If you use send event with delay than that event will not be sent if time scale is 0. To avoid that you can use wait function with real time check. Do you have that kind of issue or>?
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 13, 2014 20:33:35 GMT 1
Oh no you misunderstand bud. The invoke method and new script are working perfectly.
I just wanted to make a new state that would detect when ANY of your GUI was open. As in Main Menu, Inventory, Shop, or Container.
If we could have ONE state that would detect if ANY of these were open and simply drop the invoke method into that state it would be awesome.
And of course another state that detects when NONE of these are open.
This way its super clean. One bazing for when ANY are open and one bazang for when ALL are closed.
As it stands now I am having to try and error to find open and close states for each menu. Id like one state that detects if ANY of them are open. Is that possible? It would make things SOOO much cleaner if we could.
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 13, 2014 20:36:14 GMT 1
Ok by the way the new pop ups on this website are freaking annoying!!! What happened?? They just started today and its almost impossible to view this website now. Its going add crazy over here! Cant type two letters without a pop up flying at me.
|
|
|
Post by Super Admin on Sept 13, 2014 20:52:00 GMT 1
Don't know about pop ups problem because i use Add block on Opera, if you use Opera or chrome you can use that as well, didn't tried with other browsers, i guess it is annoying but with add block there is none add and none pop up Btw to create that FSM that detect everything i will show you how. 1.You can use GetFSMBool from inventory FSM (and other as well) each frame and use bool test each frame to test that value. 2.Second way is to send event to that fsm and check is any of those bool true. 3.Third way to check that is to set bool in this FSM from other FSMs using set fsm bool, so if anything happens you can just use set FSM bool true but in that FSM you use action AnyBoolTrue and check each frame. Is it clearer now or?
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 13, 2014 22:36:59 GMT 1
Actually boss I found a fourth way YAY!
In my new FSM Cursor Control I added two events. DCX OPEN and DCX CLOSED and set both to GLOBAL
I Then Added two simple states. LOCK and UNLOCK
To the UNLOCK state: Added a GLOBAL TRANSITION from DCX OPEN Added Invoke Method and called the Bazing function (Displays Cursor and locks weapons fire) in the mouse test script (that we added to the DCX Player)
To the LOCK state: Added a GLOBAL TRANSITION from DCX CLOSE Added Invoke Method and called the Bazang function (Hides Cursor and unlocks weapons fire)
Now I can use SEND EVENT action to send either the DCX OPEN or DCX CLOSE event to the FSM Cursor Control.
Then it was a matter of finding the right states inside the proper FSM Scripts to place the send event actions in. Also learned these new send events MUST be placed at the TOP of the list in the state. If its not at the top of the list it fails or is buggy.
So here is a list of what states to place them in:
For PLAYER STATS: In PLAYER STATS GUI:FSM STATE: Show Player Stats (ADD Send Event DCX OPEN) STATE: Hide Player Stats (ADD Send Event DCX CLOSED)
For INVENTORY: In INVENTORY:FSM STATE: Inventory Open (ADD Send Event DCX OPEN) STATE: Hide Inventory (ADD Send Event DCX CLOSED)
For MAIN MENU: In MAIN MENU:FSM STATE: Open Main Menu (ADD Send Event DCX OPEN) STATE: Resume Game (ADD Send Event DCX CLOSED)
Did those steps and its working like a charm!!!
Ill test them on the shops and containers next and tell you what states to put them in there.
We have achieved success my friend! Thank you SO much for all your assistance.
When I am completely done I will write a final tutorial using all we have learned here. So that others can port this over if thier using the UFPS system. Its been a journey of trial and error but worth the effort! Plus I just learned a TON about how to use Playmaker lol. So all said and done it was a worth while learning experience. Even if I am a few hairs less then when I started lol. Thanks again brother you've been a huge help!
|
|
|
Post by Super Admin on Sept 14, 2014 7:34:03 GMT 1
Hehe, thanks There are actually billion ways to achieve that but i went from those easier so many people can understand how something can be achieved. I am glad you learned a lot and main purpose of my system is to make people learn something and use Playmaker easier because it is awesome tool for everyone. Also Playmaker lets you learn programming as well because you can see how things are done and it will force you to find solutions so i am glad that you found your own solution based on my suggestion and stuff so that means you progressed a lot and you better each day as game developer (best job in the world ) Good luck with your game mate
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 14:38:09 GMT 1
Thanks man it really came together with your help. Ill be testing the shop and containers today. Should be easy now that I have the system in place and a properly written script thanks to you!
By the way love the new forum! Don't know what happened but the old one exploded on my screen. This one is clean no more pop ups. Thanks. Hey if your looking for cheap, no advert web hosting, check out 1and1.com I've had my websites on there for years and its really cheap and one of the best and most reliable hosts out there. No gimmicks or banner adds or anything. Plus LOTS of tools like forum makers, and web apps for you to use as you see fit. Its the most comprehensive package out there and one of the cheapest too. No plugging a sales pitch just a satisfied customer for many years. Just thought you might want to check them out.
Anyways thanks for everything man you have been a huge help. I wanted to post a pic of my new inventory background but cant figure out how to upload a pic here. Making some kick butt skins with gimp.
Are you ready for my next challenge? LOL
The next step in combining these two are getting the inventory and weapons systems to talk to each other. I actually think with what I have now leaned about play maker this should not be too terribly hard. UFPS uses a hidden inventory and weapons system. But its all configurable via the inspector so almost everything is public bool. I should be able to get your system to read it. Then transfer the data to your inventory. Ill let you know how that progresses.
Now I am inspired to build a few interiors for the city just to test out our new working inventory in FPS mode woohoo!
Can we upload pics into the posts here?
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 15:03:36 GMT 1
Hey quick question. Where do I find the font controls for inventory? I want to change the font to match my new skins.
|
|
|
Post by Super Admin on Sept 14, 2014 15:25:21 GMT 1
HI and wow thanks for that website link, i can see that is really cheap option, will build a regular website these days, i will need it for my future game New forum yeah, old one was created earlier and i am glad you like this new style, changed some things too and some plugins are added. To upload picture on your post you have to use Reply instead of quick reply and you will see add attachment on right corner, use that and upload image where you want or any other attachments you want. Post that GUI when you can, i want to see that as well Glad you are making that progress, if you need any other help just let me know and i will help as always, by the looks of that game it will be great indeed. For font controls you have to change all fonts in GUI skins, there are several GUI skins and they are chosen based on screen resolution so you have to set them up the way you want. It is old Unity GUI system which sucks and i had to do font that way. For example with Daikon Forge or NEW Unity 4.6 you have control over font but in older Unity you have to set fonts through GUI Skin which is pain in the ass but it should't take too much time but it is still annoying Btw for my current game it will take probably a month to finish everything, systems are almost ready, save and everything and i built two levels, need 68 more + achievements and other stuff Not all systems done but will finish them on the go
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 17:13:15 GMT 1
Cool yeah man found the fonts. Your right pain in the butt doing each skin individually. Ill be here for a while doing this but did find a cool new font. Have to change the color too as my GUI is blue. The gold doesn't go well with it. Today I am mostly working on tweaking the GUI to fit the Dominion City feel. Once I have a good looking prototype (almost there) Ill take a screenie and post it.
Dominion City (Or DCX as I call it for short) is a very unique looking game. Unlike some games where the city is the whole game or just the opposite only a tiny part. The main city in DCX is about 1/3 of that game itself. The aliens rebuilt the city over top the old one. And its a very modular but highly functional city. Multiple levels all over each building to explore and get in trouble in. One building for example has about 16 different playable levels on it. In only about 1000 radius I have a TON of playable areas packed in. Ill snap some screens later today and post them so you can see what I mean. Its a very unique concept which may make it stand out from other games (hopefully). Most people have playable areas all on the ground. There are literally thousands of levels to explore in this one city alone. The other two thirds of the game consists of the "Outlands" which is a desolate desert ravaged by gamma radiation and swarming with mutants. And the other third is various settlements and outposts to explore. But seriously the player could spend months just exploring the main city. That is my intent anyways. Every little nook and cranny in the city will hold something to explore, do or fight. This will not be a quick game to build and estimating about a one to two year build time. It keeps me occupied in my spare time though so well worth it.
Cheers mate.
ZXE Games... Take it to the Xtreme!
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 18:18:10 GMT 1
Here is a quick preview of the new skin. Its not finished yet and I'm still working on converting the fonts for each resolution. Wish I could just copy the settings from one to the rest of them lol. This will take some time today. When Im done ill post a set of screens that show each gui menu.
|
|
|
Post by Super Admin on Sept 14, 2014 18:34:52 GMT 1
Story sounds great, i like it very much do and this GUI looks good too. I use Daikon Forge as my primary GUI in my game and so far it is going great, easier to set everything compared to Unity native GUI which sucks really. Those fonts, GUI skins and those shity things are annoying but you can set everything up in the end Yeah for those kind of games you will need some time to finish everything up, will you go a multiplayer or single player only? Multiplayer game require more time than single player. Cheers!!!
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 20:13:12 GMT 1
Single Player for now. Aiming for PC and PlayStation. Might go network and do multiplayer after this one is released. But that will take an entirely different kind of map system let alone the network framework will be completely different. So that will be a second game based on this idea but completely separate. The story is basically one I dreamed up years ago. Set in the not too distant future, our hero finds himself in a dark world. After a massive solar flare hits the Earth and wipes out everything electronic on the planet sending the entire globe into the dark ages literally in the blink of an eye. In the aftermath of riots, looting and watching the governments collapse, money became obsolete, and countries fell. The gamma radiation from the solar flare burned off most of the ozone and also cause rapid mutations of all unprotected life on the planet. Our hero finds he is the only living soul on the planet who is for whatever reason (a game secret to be revealed later on) is completely immune to the effects of the radiation. So people naturally flock to him as a leader. The world is in chaos, the outlands are a nightmare to survive and just when all hope seems to be lost an alien race descends on Earth and offers new hope. Claiming to be the Ancestors of modern man, a race known as the Annunaki, who supposedly settled ancient Egypt and built the pyramids around the world return to their lost colony of Earth. They begin rebuilding the cities with new tech and a new unknown source of power. Encasing the cities in a protective dome to shield from the gamma radiation humans begin flocking by the millions to these new city domes. After a fierce mutant battle in the outlands a group of Annunaki find our hero clinging to life by a thread. They bring him to the queen in the Capitol City (Known as Dominion City) as she is curious about his immunity which not even her people have. And that my friends is where the game begins. Promising a massive evolving story line that changes according to the players choices the possibilities are quite endless with multiple outcomes to the games final chapter. I hope to include something for any kind of player, from massive battles, high tech gadgets gear and weapons, and even some otherworldly powers our hero may discover within himself at higher levels. You will be able to level like in an RPG but have the freedom and chaos of a FPS. With "smart enemy" AI as you level so does your enemies. There will be tons of missions and side plots as well. And even factions to join within the single player game. LOTS of crafting too! Don't we jut all love crafting lol. And its my sincere hope that the more powerful you crafting becomes the more dangerous your enemies will get. One thing I always hated was when I got so good at crafting that with my god like armor and weapons the enemies became no match for me and eventually the game simply got too easy. This will not happen in DCX. So that's a basic rundown anyways
|
|
zax
New Member
Posts: 30
|
Post by zax on Sept 14, 2014 20:16:09 GMT 1
Ok man... where did you hide two little words lol?
INVENTORY and GOLD COINS (Ok three words lol)
Need to find where those words are defined in the FSM. Been digging for an hour now trying not to bug you with dumb stuff. But I want to change those words to something else. Can you point me to the FSM and state where I can find them please?
|
|
|
Post by Super Admin on Sept 14, 2014 20:55:15 GMT 1
Hahahaha you could ask and i would respond in a minute instead of searching for hour Everything is in Inventory game object in FSM fsm, have a look in inventory is opened or container or shop is opened: Sent you PM btw about something
|
|