[RGD] DirectX implementation of RGSS3

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
928
First Language
Dutch
Primarily Uses
N/A
I spied some updates/addons on the chinese forum. Any updates coming here too? :D
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,145
Reaction score
815
First Language
Hungarian
Primarily Uses
RMVXA
@BCj
Huhh? What updates? Where? I don't see any updates on that forum linked in the opening post.

Btw, I found several errors with the mouse cursor while working on a project.
  1. The set_ratio method won't work for not-round float numbers, it only works if the number is round. Needless to say, this breaks the mouse for full screen mode or for resized windows (depending on the scale ratio).
  2. Additionally, full screen mode mouse doesn't seem to recognize the real position of the game screen, and it reads the co-ordinates from the top-left corner of the screen instead.
  3. The description of the scroll method is wrong in the documentation on that forum. This part: "When the scroll is not in operation, this number will remain on its previous value." is not true. The number will reset to zero on it's own. The method is still usable and working fine, just not how you would think by reading that description.
I managed to fix these issues myself, just wanted to notify them here, in case some people are interested in using these mouse features.
 

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,145
Reaction score
815
First Language
Hungarian
Primarily Uses
RMVXA
@Romanticist
Why don't you simply use the lighting script that was made for RGD instead? It's much more advanced than Zeus', at least from what I saw so far from both lighting systems.

@BCj
I don't see any updated versions there, it's still on 1.3.2. Unless you mean something hidden in between those 20 pages of posts, haven't checked much there, just the first and last pages.
 

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,145
Reaction score
815
First Language
Hungarian
Primarily Uses
RMVXA
You could try this little snippet:
Code:
class << Graphics

  alias fix_fs7761 resize_window
  def resize_window(*args)
    return if self.is_fullscreen?
    fix_fs7761(*args)
  end

end
Place it anywhere you want.
This should prevent the window resize if the game is in fullscreen mode.
 

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,418
Reaction score
591
First Language
Italian
Primarily Uses
RMVXA
but what are the specs for RGD to run smoothly?
Specs greatly depend on how the code is written and optimized. A poorly written algorithm might be heavy even on a 9th generation i7, it matters little if the game is written using RM or anything else. The same goes for memory usage, if you write the code so that you have a memory leak there is no amount of RAM that is going to save you.

In the case of Zeus's script, it puts a heavy toll on the CPU. As for the memory...well, you could run your game and check how much memory it is using. I was already able to make RGD run smoothly many updates ago, and on a much worse machine at that. Unless you have tons of things to load into memory, everything else comes down to how you optimize the program, but - and this is especially true for RM communities - people often do not care (or care too little) about optimization. They often think that because one thing does what it is supposed to do, it is fine, but actually if you start piling up inefficient algorithms one after another your game is going to be incredibly slow, even if it is a RM game.
 

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,418
Reaction score
591
First Language
Italian
Primarily Uses
RMVXA
Unfortunately, I cannot give you a proper answer because I did not have a chance to check the RGD Lighting script. Because of that I do not know how well optimized it is neither do I know how well it runs on my computer.

Lighting is not exactly light (this sounds as a joke, really), but even then there are differences between different algorithms, just think about the games from the Dark Souls saga. The lighting algorithm in the first one was incredibly heavy, but it was much lighter in the sequel. This is why I think that more efficient algorithms exist, I am not a fan of lighting so I usually avoid using those kind of scripts. Maybe somebody else will be able to help you more on that hand.

However, keep in mind that Bitmap operations on RGSS are slow, and in RGD - as stated in the documentation - they become even slower, although RGD improves a certain number of other things. Anything that performs Bitmap operations is bound to be even slower, especially if it performs a lot of them.
 

Romanticist

Veteran
Veteran
Joined
Oct 8, 2015
Messages
215
Reaction score
83
First Language
English
Primarily Uses
RMMV
.
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,565
Reaction score
541
First Language
English
Primarily Uses
RMVXA
I just found this thread.
I grabbed the file and put it in my project folder. ran the game.exe it started up with my splash screen and then the title screen. I selected new game and the game closed. No errors, just completely closed.
I'll have to do some testing. May be a script I have or loaded dll file.
Khas lighting, f1 -f12 block, messageintercept, trgssx. are extra files used with scripts.
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
928
First Language
Dutch
Primarily Uses
N/A
It works with Luna Engine for me, so that can't be the culprit for it not loading. I did notice excessive lag in the battles with Luna Engine/Yanfly symphony, however.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,565
Reaction score
541
First Language
English
Primarily Uses
RMVXA
works with Luna Engine for me,
Seems to be ok with luna, but I have many other scripts. I had to remove shaz mouse, Khas lights, tidloc and VE scripts and then I was able to start the game and get to the menu. selecting items, causes it to close again. This means there is a lot of scripts that this is not compatible with.
It will not work for me.
 

AestheticGamer

Veteran
Veteran
Joined
Dec 27, 2014
Messages
55
Reaction score
24
First Language
English
Primarily Uses
This was a lifesaver for me, for something to work correctly I needed Steam Overlay to work in a game of mine, which as many know it obviously does not in VX Ace. However this .exe actually makes Steam Overlay work perfectly. Thank you so much!
 

invwindy

Ice Fairy
Veteran
Joined
Apr 9, 2016
Messages
91
Reaction score
98
First Language
Chinese
Primarily Uses
RMVXA
Sorry for not updating this project for a long time.
Now 1.4 is available.
Some fixed bugs including full screen issue, incorrect color object and some other bugs I cannot remember.
The new features are not fully tested so use them carefully. I believe parent/child structure sprite management is helpful in large projects.

@ZirconStorms and @Valentine90 Sorry I have no idea of your problems now. Maybe they are fixed in some later versions.

Dec 27, 2019 – 1.4
  • Added Sprite#shear_x and shear_y for sprite shearing.
  • Added Sprite#add_child and some related funtions.
  • Fixed some bugs.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,222
Reaction score
1,198
First Language
Spanish
Primarily Uses
RMVXA
overlay problems with the shadows.
wall on the left is an autotile, gate on the right is an E tile.


I took this pic a month ago with the previous version. Those are E tiles on wall autotiles.


This is the new one.
The shade should show up, but half way behind the gate.



(the overlay for 'counter' type autotiles, works perfect tho!) :thumbsup-right:
 
Last edited:

Users Who Are Viewing This Thread (Users: 1, Guests: 1)

  • sc19

Latest Threads

Latest Posts

Latest Profile Posts

Still no scam calls all day... also I got a quick gig designing a mascot drawing for a small business, so I might actually make some green of my own after all. That would be a perfect job for me, since I love art and digital design.
Job concerns. Love where I work, but I have severe anxiety while I'm outside at night.
It's nice to see the evolution of my game: Here is a video with the first WIP:
Sparky89 wrote on ShadowHawkDragon's profile.
Your Art and work look incredible! Thankyou!

Forum statistics

Threads
104,377
Messages
1,005,970
Members
135,904
Latest member
Luchalu97
Top