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.

Messages - PeterB

Pages: 1 [2] 3
Development / Re: Help with name display code
« on: January 05, 2020, 10:47:19 AM »
Brilliant thanks Llamazing, i hadn't even thought about that. I thought it was probably that line, but as there weren't any errors i got sidetracked on font colours.

It all works now, i used

Code: [Select]
player_name_text:draw(surface, 64, 8)
which works a treat. Now on to the - Empty - file name problem!!!

Development / Help with name display code
« on: January 04, 2020, 09:20:50 PM »
Hey guys,

I am after some help with my savegames.lua. I am trying to get the players name from the save1.dat file (or 2 or 3) and print it on the game select screen.

I can't see what I am doing wrong with drawing it on the screen, so am after some help please.

Here is the relevant section of code, and I have attached the savegames.lua file.

Thanks in advance.


Code: [Select]
local function read_savegames()

  for i = 1, 3 do
    local file_name = get_savegame_file_name(i)
    local surface = sol.surface.create(272, 16)
    surface:set_xy(24, 8 + i * 48)
    savegames_surfaces[i] = surface

player_name_text = sol.text_surface.create{
      font = "alttp",
      font_size = 11,

    if not then
      games[i] = nil
  local name = "- " .. sol.language.get_string("savegames_menu.empty") .. " -"
      -- Existing file.
    local game = game_manager:create(file_name)
    games[i] = game

-- Player name get and display
player_name_text:draw(surface, 90, 16 + i * 48)

    -- Hearts.
    draw_hearts(game, surface)

Bugs & Feature requests / Re: Tileset upate script in Lttp pack
« on: September 04, 2019, 10:46:06 PM »
Ok thanks llamazing. Sounds like a bit to much trouble for me as I have over 300 maps in my game.

Perhaps i wont be doing this anytime soon and will stick to my large ffomega tileset!

Bugs & Feature requests / Re: Tileset upate script in Lttp pack
« on: August 31, 2019, 10:36:42 PM »
Ok, thanks for the reply. I am struggling to figure out what to put in for "quest_path map_file_1.dat"?

Is quest_path where my data folder is or where my maps folder is??

And do i need to input every map file name here instead of "map_file_1.dat"??

Sorry, just starting on my lua learning journey.

Bugs & Feature requests / Tileset upate script in Lttp pack
« on: August 31, 2019, 10:48:45 AM »
Hi, does anyone know how to use the update tileset script?

I tried putting the script in the ../data/scripts folder and calling it from the game_manager script but i am getting the below error.

Any ideas, as i can't find any documentation on how to use it?

Error: In on_started: scripts/update_maps_to_rearranged_outside_tilesets.lua:26: attempt to concatenate global 'file_path' (a nil value)
stack traceback:
[C]: in function '__concat'
scripts/update_maps_to_rearranged_outside_tilesets.lua:26: in function 'get_pattern_mapping'
scripts/update_maps_to_rearranged_outside_tilesets.lua:107: in main chunk
[C]: in function 'require'
scripts/game_manager.lua:10: in main chunk
[C]: in function 'require'
scripts/menus/savegames.lua:4: in main chunk
[C]: in function 'require'
main.lua:20: in function <main.lua:9>

Game art & music / Re: ALTTP font
« on: August 07, 2019, 11:38:20 PM »
Brilliant, thanks.

Game art & music / ALTTP font
« on: August 01, 2019, 11:13:51 PM »

In case anyone wants the arrows for the signs in the Link to the past font, here is one i have just done.

It uses " for the up arrow, # for the down arrow and [] for the left and right arrows.


Game art & music / Lava flows in ffomega's tiles set
« on: June 28, 2019, 11:21:32 PM »
Hi does anyone know which lava tiles go behind the mini volcanoes?

The first image is the original, and the second my attempt, using the tiles in the third image.

Or is there some sort of tile that goes over the top to mask the bits around the edges???

I keep looking through the tile set but can't seem to replicate the original!!!

Bugs & Feature requests / Re: Sound Error
« on: June 08, 2019, 10:23:57 PM »
Obvious question, what have you changed since it last worked properly?

Development / Re: New Solarus Guide from scratch i'm creating
« on: April 23, 2019, 10:59:56 PM »
Hey 20degree,

Great start and nice graphics.

One thought from me, it may also be useful to base the chapters on Christopho's Youtube tutorials although you may want to change the order or expand them as you see fit.

He does also mention a lot of little nuggets of brilliant information when doing these. e.g. the Doors tutorial (32) where he mentions using dynamic tiles to hide doors and the easy way to remove them.

I use this for bomb walls rather than script them, and this could easily be added in the chapter on doors.

I also agree with Max, it may be easier on the eye if you lose the Solarus background.


Development / Re: Quest document - updated pdf
« on: April 23, 2019, 10:45:16 PM »
Brilliant thanks Christopho,

I really find it helpful to have a searchable pdf.

It makes it so much easier trying to find specific things in the document.

Development / Re: Quest document - updated pdf
« on: April 23, 2019, 09:50:32 PM »
Yes indeed, i don't know how to create one from Doxygen and there is no doc or pdf file anymore.

The GIT repository only has dox files

Also on a side note, does anyone know how to download it offline so the Quest Editor can see and show it?


Development / Quest document - updated pdf
« on: April 20, 2019, 09:33:17 AM »
Hi Guys,

Has anyone got an updated pdf of the latest quest document that they could share?



Bugs & Feature requests / Re: Error trying to Run Quest in Ubuntu
« on: January 27, 2019, 08:56:18 PM »
After compiling from source, 1.6.1 gets a bit further but Ubuntu still doesn't like SDL and the shaders.

I think you are right, it is either 1.53 or running the quest in Wine with the windows version of Solarus.

Anyway, this is what i get in the console.

Info: Solarus 1.6.1
Info: Opening quest '/home/me/Desktop/My Zelda Quest master'
Info: Joypad support enabled: true
Info: SDL: 2.0.8
Info: Failed to obtain core GL. Trying compatibility instead...
Info: Failed to initialize SDL shader Hack. Shaders unavailable.
Info: Renderer: SDLRenderer : software

Bugs & Feature requests / Re: Error trying to Run Quest in Ubuntu
« on: January 23, 2019, 11:29:40 PM »
Hi Alex,

No I am using the standard Solarus from the source code. I see it has been updated so I will compile it again and see if it is fixed.

Pages: 1 [2] 3