Recent Posts

Pages: 1 ... 8 9 [10]
91
Bugs & Feature requests / Dark Theme
« Last post by RealAquilus on March 31, 2018, 07:42:13 pm »
Ok it is definitevely not really necessary, but it is really worth it, a nice looking dark theme is a really nice thing to have.
Would you guys take in consideration this? (even if it would require months because you guys are actually working on something else)
92
General discussion / Re: .midi / .spc to .it format ?
« Last post by MetalZelda on March 31, 2018, 06:42:24 pm »
sol.audio.set_music_channel_volume() only works for .IT musics.

Yeah, I know that, that's why I wanted some info on how to convert a mid or spc to it, PhoenixII54's solution works
93
Your scripts / Re: Roof Fading script
« Last post by MetalZelda on March 31, 2018, 03:07:04 pm »
Updated script

#1 - User can now use a texture for the roof rather than a static color by using these parameters

Code: Lua
  1.   texture = {
  2.     src = "source_file_name",
  3.     opacity = opacity,
  4.   }
  5.  

The best way is to use a 8x8, 16x16, 8x16 pattern, the script will do the rest
You can combine both texture and color, using a semi transparent texture and apply a color underneath is possible

#2 - You can dim any roof surface you want by using

Code: Lua
  1. map:dim_room_surface(i, bool)

where i = the identifier number of the roof
           bool = true or false

Useful for camera movements
94
General discussion / Re: .midi / .spc to .it format ?
« Last post by Christopho on March 31, 2018, 01:34:47 pm »
sol.audio.set_music_channel_volume() only works for .IT musics.
95
General discussion / Re: .midi / .spc to .it format ?
« Last post by PhoenixII54 on March 31, 2018, 10:44:59 am »
For your MIDI files, you can try using OpenMP. Just open your file, then fix instruments if needed, and export it as IT file, with instruments integration.
Hope it will help.

For SPC files, i don't know of another solution other than the one you used, sorry.
Edit : After some thoughts, you can do it with SPC files too : once you have your converted IT files, you can modify them in OpenMPT and fix sustained keypresses.
96
General discussion / .midi / .spc to .it format ?
« Last post by MetalZelda on March 30, 2018, 11:59:56 pm »
Hello.

I have a bunch of mid files that I have in my computer, with various changes done to the soundfont (If you don't understand then check this video https://www.youtube.com/watch?v=-UwhEyxFrns) and I plan to use the sol.audio.set_music_channel_volume(channel, volume) for various things (time of day based music, environment stuffs)

However, there's few, if no, no real tutorial on how this can be achieved. There is a spc to it that works but there's some problems on some sustained note but works great, there's none for mid but i'm pretty sure it's feasible.

Any idea ?
97
Development / Re: Display images.
« Last post by Diarandor on March 27, 2018, 08:03:10 pm »
Ahoy there! Cat lover here! :D
I don't really understand the problem. Could you explain it better and what is your purpose?
What do you mean by "images" in this case? (Tiles maybe?) And what do you mean by "alternating" the images?
98
Development / Display images.
« Last post by Minefran12 on March 27, 2018, 07:41:02 pm »
Hello, i'm doing the map of my game by displaying images, my question is, How can I do to alternate them by presing the arrows?
99
Your scripts / Re: Roof Fading script
« Last post by Diarandor on March 26, 2018, 10:01:31 pm »
The use of the script should be just this line
Code: Lua
  1. require(path_of_the_script)
instead of
Code: Lua
  1. local map_metatable = sol.main.get_metatable("map")
  2. require(path_of_the_script)(map_metatable)
because you can get metatables inside any script.
100
Your scripts / Re: Roof Fading script
« Last post by MetalZelda on March 26, 2018, 08:41:01 pm »
 
Nice work! ;D
If you forget one of them, your computer might explode and then stuff in red will appear, Diarandor might send you cats, you've been warned.
I'll be preparing my cats, just in case. :-\

 :P

I fixed something odd, instead of keeping the same opacity within map:get_game():is_paused() I used a return which will only draw 1 surface.
Now it works perfectly, I might update it someday to give proper functions such as freezing entities when opacity = 255, possibility to fade the opacity manually (in case of camera movement)
Pages: 1 ... 8 9 [10]