Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Zefk

Pages: [1] 2 3 ... 6
1
Development / [Solved]Hero state question
« on: August 09, 2018, 11:47:50 pm »
I was wondering if there was a way to set the hero's state? All I noticed in the documentation was hero:get_state().

Sometimes the hero gets stuck on a certain state in my scripts and something like the following would be useful.

Code: Lua
  1. hero:set_state("free")

2
Bugs & Feature requests / [Solved]on_removed() warning issue?
« on: July 28, 2018, 12:48:17 am »
To begin with, this issue does not affect the game play at all and everything works. It is just an annoying warning.

I have this code on a different map.
Code: Lua
  1.   function slime:on_removed()
  2.     bookcase:set_enabled(false)
  3.   end

When I leave the map and go to a different map, I get a warning from the previous map: (I checked and "bookcase" does not exist on the new map.)
Code: [Select]
Error: In on_removed: [string "maps/chain_village/zark_house.lua"]:17: attempt to index global 'bookcase' (a nil value)
Please note: I did not remove the bookcase and it does the same thing when I tested it with a chest entity.

Code: Lua
  1.  function slime:on_removed()    
  2.     if not chest:is_open() then
  3.       sol.audio.play_sound("secret")
  4.     end
  5.  end

Code: [Select]
Error: In on_removed: [string "maps/chain_village/zark_house.lua"]:21: attempt to index global 'chest' (a nil value)

I get around the warning by using a save variable.

Code: Lua
  1.   function slime:on_removed()
  2.     if not game:get_value("zark_house_enemy_defeated") == true then
  3.       bookcase:set_enabled(false)
  4.     end
  5.    
  6.     if not game:get_value("zark_house_enemy_defeated") == true then
  7.       if not chest:is_open() then
  8.         sol.audio.play_sound("secret")
  9.       end
  10.     end
  11.  
  12.     game:set_value("zark_house_enemy_defeated",true)
  13.   end

3
Bugs & Feature requests / [Solved]door function issue?
« on: July 26, 2018, 09:15:29 am »
Version: Solarus 1.5.3
OS: Linux

This might be a bug?

I tried using door:on_opened(), but it seems to not be working. I double checked the name and everything. This function is called during an opening of a door, right?

Code: Lua
  1. function door_1:on_opened()
  2.   print("opened door")
  3.   hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")
  4. end

The same occurred with door:is_open(). The door is indeed open, but nothing happens.

Code: Lua
  1.  
  2. sol.timer.start(1000, function()
  3.   if door_1:is_open() == true then
  4.     hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")
  5.   end
  6.   return true
  7. end)
  8.  

The function door:is_opening() worked.

Code: Lua
  1.  
  2. sol.timer.start(1000, function()
  3.   if door_1:is_opening() == true then
  4.     hero:teleport("chain_village/underground_miniboss", "boss_destination", "fade")
  5.   end
  6.   return true
  7. end)
  8.  


4
Development / [Solved]Pass multiple entities?
« on: July 22, 2018, 01:14:15 am »
Would it be possible to pass more than one entity through a method?

For example,
Code: Lua
  1. entity:overlaps(entity)

Code: Lua
  1. map:get_entites("bomb"):overlaps(test)

5
Development / [Solved]Bomb overlap assistance
« on: July 21, 2018, 09:58:18 am »
Okay, I want an entity to be disabled when a bomb is placed on it. I am guessing that it is not working because the bomb is not created before the start of the map.
Code: Lua
  1. --bomb test
  2. sol.timer.start(1000, function()
  3.     if bomb_1:overlaps(test) then
  4.       test:set_enabled(false)
  5.     end
  6.   return true  -- To call the timer again (with the same delay).
  7. end)

Code: [Select]
Error: In on_started: [string "maps/soulia_forest/soulia_forest.lua"]:57: attempt to index local 'bomb_1' (a nil value)


6
Development / [Solved]Timer problem
« on: July 16, 2018, 12:00:52 am »
I have a problem with my script. The switches are suppose to reset after 5 seconds when they are all activated. They do reset, but the one second timer is already running through again and I cannot activate any switches for another 5 seconds.

Code: Lua
  1. function map:on_started()
  2.  
  3.   sol.timer.start(1000, function()
  4.     if solid_1:is_activated() == true and solid_2:is_activated() == true and solid_3:is_activated() == true and solid_4:is_activated() == true then
  5.       sol.timer.start(5000, function()
  6.         solid_1:set_activated(false)
  7.         solid_2:set_activated(false)
  8.         solid_3:set_activated(false)
  9.         solid_4:set_activated(false)
  10.       end)
  11.     end
  12.     return true
  13.   end)
  14.  
  15. end


7
Game art & music / Project Heroine Sprites
« on: July 11, 2018, 04:13:51 am »
I am showing off the sprites I mentioned in the Female Character Hairstyles topic. So far I got the front, back, and side views finished, but I still need to modify the sprites colors + make the other animations.

These sprites are based off of the Eldrina Sprite I made. Eldrina is a mod of Diarandor's Eldran v1.1 Sprite. This sprites project would not even exist if it was not for Diarandor and I am thankful for his amazing art that just keeps getting better.

Project Heroine Sprites: (Login to view)



For history purposes: Plexa

8
General discussion / A funny thing about forums
« on: July 04, 2018, 01:21:36 am »
A lot of messager services were discontinued, but a space for them still exist on forums. I found it odd that there is no option to just add the type of service one uses.

Discontinued:
AOL Instant Messenger (Discontinued (December 15, 2017)) Wiki
MSN Messenger (Discontinued, 2013) Wiki

Still Exist:
ICQ
YIM





9
Bugs & Feature requests / Forum: Storage Full
« on: July 03, 2018, 12:58:00 am »
The upload folder is full. Please try a smaller file and/or contact an administrator.

My file was 1.4 KB

Should we go through our attachments and free up storage?

10
Game art & music / Gimp Script: deep-float-copy
« on: July 03, 2018, 12:37:33 am »
Okay, I decided to put the deep-float-copy script in this section because it is related to Gimp. Feel free to move it.

The deep-float-copy script is something I found online, but it was broken for gimp 2.8, so I fixed it. Gimp still has not improved its layers as far as I know.

It is useful for copying link layers that are selected. Make sure to select the area of the linked layers or a few error messages will appear. The preview below shows the character being selected. Float Linked Layers (Copy) will instantly copy all the linked layers.

Install:
Linux: Put it in /home/YourName/.gimp-2.8/scripts
Other: https://en.wikibooks.org/wiki/GIMP/Installing_Plugins#Copying_the_plugin_to_the_GIMP_plugin_directory

Image Example + sneak peak:
Preview

Downloads:
Download (Login to download)
Alternative Download


11
Bugs & Feature requests / Site link not working: Tunics Wiki
« on: June 27, 2018, 08:13:05 pm »
Solarus Website > Games > By the community > Tunics!

It seems the Tunics DokuWiki no longer exists, but it can still be seen on WaybackMachine.
https://web.archive.org/web/20171028100334/http://tunics.legofarmen.se:80/start
https://github.com/Legofarmen/tunics/tree/master/data

12
Game art & music / Female character hairstyles
« on: May 13, 2018, 07:24:22 am »
Hi everyone,

It has been awhile.

I am making a bunch of free female characters. I am wondering if I missed a major hair style?

Ponytail is covered by the way...just have not made the view points. Also, I aware that overlaying the styles can make new ones.




~Zefk

13
General discussion / [Debug] Pokemon Original Games
« on: June 18, 2017, 07:13:28 am »
I thought this video was interesting. It could help a game creator to think of ways to prevent bugs that pros made in the past.
https://youtu.be/VGlZu2hoAiE?t=92

In my opinion, key items will prevent these bugs from occurring for quests.

14
General discussion / 19 transitions
« on: May 18, 2017, 10:37:10 am »
I made many transitions in Gimp from scratch. I still have some tweaking to do, but I plan to have these 320x240 transitions setup as animations. Of course, I plan to have these as CC0, so they will be free for any usage.

What does everyone think? Did I miss any basic transition?

Gimp Playback Previews:






































15
Development / [Solved]Screen vs entity position?
« on: May 15, 2017, 01:51:17 pm »
Is there a formula I could use to calculate screen image x,y coordinates to the entity position? For example, drawing an image at the hero. I am not sure that entity:get_position() is related to this because is not that position different than image x,y coordinates?

Pages: [1] 2 3 ... 6