[game] poek - a random adventure

Post your working scripts, libraries and tools
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

[game] poek - a random adventure

12 Oct 2016, 18:57

poek
1.3 (Sat November 05, 2016)
Download | Screenshot (gif)


Scenario:
You run through a forest for days on end and finally you exit into some plains, you see a vicious Prairie Dog wielding a Wrench and wearing a Cobweb.
One cannot be prepared for such an epic battle so you pause and think about what to wear. You decide that using a Hedgehog, Shovel and a Key should do the job nicely, but for protection you equip a Headphone and Blindfold. You expect that to keep you safe from such a dangerous creature.
The battle begins...
Image

About:
poek is a random idle-RPG. The point of the game is to let it run in the background as you do stuff, occasionally you can peek to see how you're doing. There are over 930 in-game items, each item can be used as a weapon, armor or eaten (wear a Carrot as armor, eat a Lightbulb or use a Leotard as a weapon). Use your imagination how things would work :P

Features (I planned for more):
* 900+ items
* 60 enemies
* 10 zone types
* 4 rare events
* Turn Pause on and you can manually play, press spacebar to step the game forward. (Healing doesn't work...)
* Click things in the the main view for stats and info
* Enemy levels scale with you
* Hidden features
* Save/autoload (nothing is saved unless you tell it to)
* Export

Notes:
* No files are created until you choose to save
* There is no autosave. REMEMBER TO SAVE
* It applies a simple registry fix found here: https://autohotkey.com/board/topic/9366 ... der-engine
* Most of the settings are at the top of the script. I never got around to making a UI for them. Use at your own risk.

History:
Spoiler
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: [game] poek - a random adventure

13 Oct 2016, 03:09

I really like your introduction, the blindfold will be really useful when the Prairie Dog spits at you. I will have a look at it in the evening.
Time to get botting.
Spoiler
Please excuse my spelling I am dyslexic.
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

13 Oct 2016, 10:09

the game has auto-play built-in, it has its own crappy bot :P what you could do is improve the AI (aka bot, powered by RNG) built-in and release it here, I'll gladly toss a link to it.
There is also manual play that you need to enable in the script (line 48, autoPlay:=1. set to 0). so enable that then bot it.

currently there are a few quirks (some which I even have already coded to fix, but it doesn't work... even though it seems perfectly written out) you could fix for your bot/ai improvement:
1) say you have 2 knives, you equip both, rarely the ai will try to equip it and toss an error into the chatlog. even though I have a couple checks to prevent this...
2) when paused and autoplay is on, if you manually use skills, they work, except for Heal (should be easy to fix)
3) if all gear slots are full, it still tries to equip stuff, even though I do a couple checks.
4) I was lazy and couldn't think of a good way to do Fight skills. basically they are all the same except in damage amount. which makes Punch the best thing to use, always.


And ya, i'm anti-botting, but that's for online games. offline I don't really care about since that's only *your* experience you're messing with, not affecting *other players*/the market/whatever.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
SnowFlake
Posts: 368
Joined: 28 Apr 2015, 05:41
Google: floowsnaake
GitHub: floowsnaake
Contact:

Re: [game] poek - a random adventure

13 Oct 2016, 11:43

I thot the picture was of ingame *Facepalm*
:yawn:
User avatar
Capn Odin
Posts: 1308
Joined: 23 Feb 2016, 19:45
Location: Denmark

Re: [game] poek - a random adventure

13 Oct 2016, 16:36

It seems pretty neat, but I am having some trouble acquiring new items, the following event took place but my inventory never changed.

Code: Select all

You crawl into a Bicycle while you heal
You crawl into a Shawl while you heal
You crawl into a Lattice while you heal
Inventory shortly after crawling into a Lattice, but long after the first two.

Code: Select all

"Inv":{ ".a:Corgi":{"qty":1,"stat":["6","10","10"],"type":4},
		".a:Honey":{"qty":4,"stat":["0","3","8"],"type":3},
		".w:Frog":{"qty":1,"stat":["13","9","1"],"type":4},
		".w:Ladle":{"qty":1,"stat":["5","1","-3"],"type":1},
		".w:Tiara":{"qty":2,"stat":["3","1","-5"],"type":2},
		"Corgi":{"qty":0,"stat":["6","10","10"],"type":4},
		"Frog":{"qty":0,"stat":["13","9","1"],"type":4},
		"Honey":{"qty":2,"stat":["0","3","8"],"type":3},
		"Ladle":{"qty":0,"stat":["5","1","-3"],"type":1},
		"Tiara":{"qty":0,"stat":["3","1","-5"],"type":2}}
Am I missing something ?

Gotta run, I am being stalked by a birthday cake.

Edit: one possibility is that my username is causing the trouble, for you see I am not really Capn Odin, my true identity is Cap'n Odin DUN-DUN-DUUUN!
Please excuse my spelling I am dyslexic.
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

13 Oct 2016, 18:39

works for me: http://i.imgur.com/YnEuJBa.png
and if I load up your inventory, it loads up correctly (so it's not corrupt): http://i.imgur.com/3xnjdKs.png

and, Happy birthday!


also, "You crawl into a <item> while you heal" does not mean you acquired a new item.
You were defeated, so now you need to find a spot to rest in safety, so enemies cannot attack you. You don't get rewarded an item for losing :P
The item you crawled into is just some random object laying around the random world, not from your inventory.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
Xatmo

Re: [game] poek - a random adventure

14 Oct 2016, 02:53

ug I click on .gif for preview and i stared at it for 5 mins wait for you to lvl when i finally remembered it was a gif not a vid... Fail. i Guess this could be addicting to watch :lol:
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: [game] poek - a random adventure

22 Oct 2016, 07:29

Image
clicked yes and it showed the same thing again but after that i clicked yes and seems like nothing's wrong
Win 10 x64 version 1607. AHK 1.1.24.02.
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

22 Oct 2016, 09:52

What OS/IE version do you have? getElementsByClassName() was added in ie9. It won't work in anything less (windows xp)
Xatmo wrote:ug I click on .gif for preview and i stared at it for 5 mins wait for you to lvl when i finally remembered it was a gif not a vid... Fail. i Guess this could be addicting to watch :lol:
It is fun to watch or read :D let it run, export the log, read it.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
Elesar
Posts: 69
Joined: 31 Oct 2013, 07:56

Re: [game] poek - a random adventure

22 Oct 2016, 12:02

tidbit wrote:What OS/IE version do you have? getElementsByClassName() was added in ie9. It won't work in anything less (windows xp)
I get the same thing :(

Win 10 Pro v1607
IE v11.321.14393.0
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: [game] poek - a random adventure

24 Oct 2016, 23:49

Elesar wrote:
tidbit wrote:What OS/IE version do you have? getElementsByClassName() was added in ie9. It won't work in anything less (windows xp)
Tested on another PC. Win7 x64. IE11 latest version. The previous PC is also IE11.
User avatar
Xeo786
Posts: 193
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: [game] poek - a random adventure

25 Oct 2016, 03:49

not working for me IE11 Windows 7 x32 :(

line number 40 "element:=base.getElementsByClassName(v)[k-1]"
"When there is no gravity, there is absolute vacuum" -Game changer theory
User avatar
Xeo786
Posts: 193
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: [game] poek - a random adventure

25 Oct 2016, 04:09

Xeo786 wrote:not working for me IE11 Windows 7 x32 :(

line number 40 "element:=base.getElementsByClassName(v)[k-1]"
after trying with different username Game run.... :dance: :dance: but its all black screen ....

:!:
Image
"When there is no gravity, there is absolute vacuum" -Game changer theory
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

25 Oct 2016, 09:51

Xeo786 wrote:
Xeo786 wrote:not working for me IE11 Windows 7 x32 :(

line number 40 "element:=base.getElementsByClassName(v)[k-1]"
after trying with different username Game run.... :dance: :dance: but its all black screen ....

:!:
Spoiler
That's how the game looks. there are no graphics. it's a text game.

It seems you cannot choose any name you want? guess I'm not really sure what is allowed in an html class name :P best to avoid spaces and symbols.

I also saw a topic recently where someone was having issues with "base" as a key name because ahk has a mildly hidden thing that uses the keyword "base". so I have renamed it. Hope that helps.
Download updated.

Edit: did some testing with Elesar on IRC,
1) I cannot reproduce it, and several others have no problems at all. But some people do.
2) It wasn't an issue with "base"
3) It doesn't seem to be an issue with names
4) I somewhat fixed it, but it seems to only happen for combat and Full Log, for Elesar
5) it's not a 64/32 bit issue, or an admin/permission issue.
6) I cannot reproduce it, not really an easy thing to test and fix. Since it works for some, I can only assume it's a computer/environment issue.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

26 Oct 2016, 13:43

update:
FIXED THE ISSUE! download link is updated.

the issue was fixie(prev) being called too early. it's now in the exit routine.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: [game] poek - a random adventure

27 Oct 2016, 09:33

tidbit wrote:update:
FIXED THE ISSUE! download link is updated.

the issue was fixie(prev) being called too early. it's not in the exit routine.
Looks like it's fixed. Thanks tidbit. BTW, did you draw the icons yourself? Looks nice :D
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

27 Oct 2016, 09:44

yes I did :P quick little doodles. didn't want to spend any more time on this. and now that it works for all (with a few very minor quirks)... *sends to the folder of untouched projects*

edit: 1.1 released. fixed a couple bugs, changed some items, changes other stuff.
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
joedf
Posts: 7283
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: [game] poek - a random adventure

28 Oct 2016, 21:24

Hahaha awesome! gettin' that Zork feel :D
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500 @ 4.00 GHz, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
tidbit
Posts: 1147
Joined: 29 Sep 2013, 17:15
Location: USA

Re: [game] poek - a random adventure

31 Oct 2016, 11:27

1.2 released

1.2 (Mon October 31, 2016)
- Days are slightly longer
- game speeds changed from 3000/3500ms to 2000/4000ms
- added "Drop" to the selected inventory items.
- cleaned up generated HTML stuff for all the logs and whatnot. no more duplicate DIV ID's
- the Full Log items/names can now be clicked aswell
- changed a couple items
- other minor things
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
xZomBie
Posts: 256
Joined: 02 Oct 2013, 02:57

Re: [game] poek - a random adventure

02 Nov 2016, 21:55

[Bug] Start the game, don't play it, click Full Log.

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Xtra and 44 guests