Product Chat / Problem with displaying notes / instructions script not working since update 1.14

Author
Message
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Mar 2017 06:37
Hey guys,

unfortunately, the last few updates brought not only new stuff and improvements, but also errors I never had before and new issues!
Despite existing EBE structure saves not working or being completely vanished, I have one big problem that keeps me from releasing a new update for my game Hunted: One Step Too Far.

Okay, so here is the problem: I can't read notes! The png's are in the right folder, the script is attached... still it just won't work!
Please, if anyone has an Idea.. tell me what it might be!

Thanks very much,

Duchenkuke
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 7th Mar 2017 06:42
oh that doesn't sound good :/
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 7th Mar 2017 06:42 Edited at: 7th Mar 2017 06:43
@Duchenkuke are you getting any error messages, when loading the test level? or while trying to retrieve the note in-game? Can you attach a snippet of the code you are using? Thanks

Also, are you using sprites?
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Mar 2017 06:55
No, no errors. Code below. I think it's a sprite system, yes.. Can't tell for sure though.



Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Attachments

Login to view attachments
Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 7th Mar 2017 08:16 Edited at: 7th Mar 2017 08:18
Ah right, that's the older script, better to use this one <-- it's the newer script with sprites, and much better IMO, a lot more versatile and allows multiple notes much easier by naming the entity the same as the note (eg 001.png, 002.png). Credit to smallg for the script
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Mar 2017 10:07
Will check it out, thanks!
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Mar 2017 10:29
What means Runtime Error: 501 : Image Number 96000 ?
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 7th Mar 2017 10:32 Edited at: 7th Mar 2017 10:32
Usually a standalone error? It means the image location is not set correctly, if it is a standalone error, check the script\image folder of your MyGame (Usually in C:\Documents\Game Guru to make sure your custom images have moved also
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Mar 2017 10:34
The error occured in testing mode. Thanks again, I will check it out!
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 7th Mar 2017 10:37
Double check you're following setup instructions 1 and 4
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 7th Mar 2017 10:41 Edited at: 7th Mar 2017 10:44
Check this line in the note_sprite.lua: local folder = "scriptbank\\images\\"

If you are using a custom folder, say for example "notes" then you need to add to the string, so it reads "scriptbank\\images\\notes\\"

If you are using the default "scriptbank\\images\\" folder then no need to change, but make sure that is where you are adding the notes and naming them uniquely.
Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 7th Mar 2017 10:59
try this test map setup, using the paper entity from the stock scenery and place the attached image in the \\scriptbank\\images folder

Tested and working fine on my GG

Attachments

Login to view attachments
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Mar 2017 10:23
I checked the note_sprite.lua and changed the folders, it seems to be working now. THANKS
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Mar 2017 10:37
the only problem is that it looks stretched and out of place.. It should be in the middle of the screen and not stretched....

Why does the old instructions.lua not work anymore? It was perfect.
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Freakon
GameGuru TGC Backer
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: UK
Posted: 8th Mar 2017 11:06
yeah it looks stretched due to the % and x,y co-ordinates, you just need to update those values to the size and position you want in the .lua file.

The old instructions where good, but once you get to grips with the new sprite, you'll see the benefit it is much better
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Mar 2017 11:17 Edited at: 8th Mar 2017 12:00
okay will try.

But why don't they work anymore? My entire game is useless right now. I can't release the update because of this. It's just extremely frustrating.

edit: Look here



I managed to move the position to the middle but I tried everything and still can't find the line that changes the "height" value. Where is it?


Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Attachments

Login to view attachments
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Mar 2017 15:03
Line 19: SetSpriteSize()
Just change the last "sprite_size" to your desired value.
I tend to build my sprites full resolution and then crop any area I don't want as an alpha channel - much easier to position like that, so never really worry about scale.

The old way might look perfect for you but once the resolution is changed (very possible as lots of people use different resolutions) then it would be moved and look weird... If somebody used a smaller resolution it's very possible the note would be off screen.
The new script will fix that but with a major difference in resolution it will stretch (as you noticed), this is much preferable to being off screen though.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Mar 2017 15:12
Thanks!!

When I get back from work, I will change it.
Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 8th Mar 2017 18:58
I've noticed a bug with the getinkey command on occasion when the key press will not be detected. It could have been an issue with that... Sometimes it works, sometimes it doesn't, very intermittent and most annoying. Normally rebooting Game Guru works. Obviously a nasty bug when coding anything with key presses if you don't notice it.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.

Login to post a reply

Server time is: 2024-07-08 13:44:53
Your offset time is: 2024-07-08 13:44:53