[Mod] Vonkie's mod [04/12/12 - 013] Your own mods!

The place to discuss all things Desperate Gods.
Post Reply
Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

[Mod] Vonkie's mod [04/12/12 - 013] Your own mods!

Post by Vonkie » Fri Nov 23, 2012 8:10 pm

Many bugs have been swatted, and the moddable textures have been improved!
However, the normal map bug still remains. But the original one will be omitted when you change a texture!

Note: Included example files are mostly resized versions! For full image files download the DG source code and look for the .tga files!
-----
[+] How to mod
This tutorial is under construction!
Since 011 BETA a help/example file is included.
To play these mods in multiplayer, every client and host has to have it!
If this is not the case, they will not see the cards like you do.
-----

Hi there, Desperate Gods fanatics!
My name is Vonkie, and I'm here to show of my mod for the game.
I'm a fairly new programmer, but I have the experience to mod~

There have been a lot of new features in the last few updates, that make the old title of it(Full mouse control) not valid anymore...

This mod will give all control over the game to the mouse, or anything you like, really.
[+] Controls for the mouse
Here is the mouse's new control scheme:
Left mouse button stays the same.
Tap a card/deck: Middle mouse button(Press the scroll wheel down.)
Tap anything else: Right mouse button.
Flipping a card/deck: Right mouse button, double click for rotation.
Rotating: Scroll wheel up/down.
Zooming: Right mouse button or scroll wheeling while not holding anything.
- While zoomed you can now hold your cursor to the edge of the screen to move the camera around!
- You can also drag the screen around by holding the Tap Card key(Middle mouse button by default.)
- Scroll wheel zooming can now be done gradually!(zooming in deeper or less deep) This may feel a tad buggy still.)

Code: Select all

Current features:

 - Full mouse support. Control everything with clicks!
 - Input menu! Choose how to control the game yourself.
 - GUI modifications. New menu, for your convenience~
 - Change the password mid-game!
 - Direct connect to IP.
 - Sound preferences, name preference.
 - dedicated server listing for the mod, with backwards compatibility listing as well.
 - Modified chat window.(Partly in progress)
 - See which rooms are password protected(Indicated with an X)
 - Make your own card mods!
 - Bug fixes.
 - Full texture moddability, contains bugs however.
 - Multi-Coin pickup, use the tap object button to pick up multiples!(Right click by default)
 - Toybox, add new items mid-game(Server host only).
 - Color Selection!
Feel free to suggest better schematics! Or report some bugs! Or maybe new features?

Here is the mod, yes, it works as a stand-alone game, yes it works on any server:
Download 013 - Example/ReadMe included for modders.
Download 012 MAC Not tested, not able to test!

>> Wanna keep up to date with my mod? Follow me on twitter! <<
[+] Version history
013 - Quick fix!
Added Version checker.
Quick bugfix with multi-coin pickup.

012 - Kill the bugs!
Added Color selection, and a few small additions.
Changed multi-coin pickup!
Fixed multiple bugs.

011 BETA - Hell and back! Now going back again...
Added multiple mod features.
Added ToyBox for server hosts.
Added multi-coin pick up.
Fixed height of objects you carry.

010 - Now we are thinking with JSON!
Added Card modding feature!
Fixed multiple bugs.

009 - Biggest update~
Added savable preferences.
Added choice system for server registration.
Changed GUI margins, by request.
Fixed multiple bugs.

008 - Important, this time.
Added Direct connecting.
Changed the connection tittle, disabling to connect modded clients to official servers!
Fixed the zoom in main menu.


007 - I'm too drunk to code!~
Added password changing in menu, thank you JayneHJKL for allowing me!
Changed the GUI, more appropriate to the screen, by request.

006 - Are you sure?
Added the ability to drag the screen while zoomed in, by request.
Changed the GUI:
- Option to quit the game altogether in main menu(For when you are in full screen.)
- Added option to allow boundary scrolling or not in in-game menu.
- Added extra safety when restarting/exiting the game.

005 - The GUI? why not!
Added double 'flipping' click to rotation, on request.
Added menu for less likely accidental 'exit game', on request.

004 - scroll wheel fun.
Changed the zoom control for the scroll wheel, allowing gradual zooming.
Fixed a little bug that made the cards lower a bit while flipping them.

003 - That was quick.
Added scroll zooming, by request.
Added input manager options.
Fixed hover bug when tapping an object.

002 - Edgy movement!
Added zoomed camera movement with mouse support.

001 - initial release
Last edited by Vonkie on Tue Dec 04, 2012 11:04 am, edited 26 times in total.

User avatar
Afason
Posts: 2
Joined: Sat Jan 15, 2011 10:05 pm

Re: [Mod] Full mouse control

Post by Afason » Fri Nov 23, 2012 8:38 pm

Personally, I think the middle mouse button would be better suited for flipping cards to a readable position, I'd imagine that being more useful than tapping cards.

Otherwise, I'm glad to see this come along. I was thinking that it would be interesting to maybe make it playable with multiple mice on one computer.

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control

Post by Vonkie » Fri Nov 23, 2012 10:32 pm

Afason wrote:Personally, I think the middle mouse button would be better suited for flipping cards to a readable position, I'd imagine that being more useful than tapping cards.
Well, I didn't go with that, reading how people used the card tapping to emphasize their choice when they don't have a mic(and are too lazy to type it)

If most people prefer the rotation flip though, I'll change it.

Multiple mice on one computer might be a bit too advanced for a beginner like me, considering I only have seen one program that ever did anything like that, and not even all that great... =/

I can look, 'cause it'd be a great addition for the game, but don't hold your hopes up.

User avatar
Djemps
Posts: 285
Joined: Thu May 13, 2010 11:11 am
Location: Rochester, NY
Contact:

Re: [Mod] Full mouse control

Post by Djemps » Fri Nov 23, 2012 10:54 pm

Vonkie, thanks for the hard work!

I, for one, am a Tapper. I'm pretty quick with 'R' to view cards and 'E,F' to flip them back over. That's pretty much all I've needed for card manipulation.

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control [Updated 24/11/12]

Post by Vonkie » Sat Nov 24, 2012 10:49 am

Updated! =D
And in reply to Djemps, I skipped out to R, considering you can easily do it with flipping and turning.... but I can change it, I guess.
After all, the normal buttons will still work, so if people really wanna tap the cards, they can still use the T key, right?

I'll see what gets asked most, perhaps I can find how to add it in that input menu, never worked with it myself~

Smellyhobo101
Posts: 11
Joined: Tue Jan 10, 2012 4:29 am

Re: [Mod] Full mouse control [Updated 24/11/12]

Post by Smellyhobo101 » Sat Nov 24, 2012 11:51 am

Nice! Trying this out now. But i have one suggestion, why not have scroll up zoom in, and scroll down out?

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control [Updated 24/11/12]

Post by Vonkie » Sat Nov 24, 2012 12:05 pm

Smellyhobo101 wrote:Nice! Trying this out now. But i have one suggestion, why not have scroll up zoom in, and scroll down out?
Well, I don't see the use of that, considering you can do that with right clicking, though, I can do it if you want to.
Just keep in mind, your hand will have to be empty, otherwise you'd just turn around the object in your hand.(Sorry, no idea how to implement it otherwise.)

Smellyhobo101
Posts: 11
Joined: Tue Jan 10, 2012 4:29 am

Re: [Mod] Full mouse control [Updated 24/11/12]

Post by Smellyhobo101 » Sat Nov 24, 2012 12:10 pm

Found a glitch. If you tap with a die or any other non card item, the physics work differently. Theres no sound effects. They glide atop surfaces that should have friciton, and they also clip through certain other items.

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control [Updated 24/11/12]

Post by Vonkie » Sat Nov 24, 2012 12:25 pm

Smellyhobo101 wrote:Found a glitch. If you tap with a die or any other non card item, the physics work differently. Theres no sound effects. They glide atop surfaces that should have friciton, and they also clip through certain other items.
Ah yes, funny that you say that, I found that out while updating to the version I just uploaded.
I thought it was because of what I just added, but apparently it was before that.

It's fixed now, and yeah, it was hovering, rather then tapping the board. Thank you for telling me!

Smellyhobo101
Posts: 11
Joined: Tue Jan 10, 2012 4:29 am

Re: [Mod] Full mouse control [Updated 24/11/12 003]

Post by Smellyhobo101 » Sat Nov 24, 2012 12:53 pm

Cool. Downloading and testing now.

Edit:

Found a bug. When right clicking to flip a card, it moves down slightly like its trying to tap.

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control [Updated 24/11/12 003]

Post by Vonkie » Sat Nov 24, 2012 1:56 pm

Smellyhobo101 wrote:Found a bug. When right clicking to flip a card, it moves down slightly like its trying to tap.
Oh, so it does, how did I look over that?
Well, I fixed it, seemed simple enough, testing it a bit now.

This build now seems a bit too small to bother with for right now, unless it's too annoying for you, so if anything else comes along, I'll add it an upload it all together then.

User avatar
Silverfish
Posts: 1451
Joined: Sun Oct 26, 2008 8:24 pm
Location: Sweden
Contact:

Re: [Mod] Full mouse control [Updated 24/11/12 003]

Post by Silverfish » Sat Nov 24, 2012 4:19 pm

This is great! This is how I expected the controls to be and how they should have been in the first place. :)

Mr_FJ
Posts: 6
Joined: Mon Jul 13, 2009 10:06 am

Re: [Mod] Full mouse control [Updated 24/11/12 003]

Post by Mr_FJ » Sat Nov 24, 2012 4:50 pm

Perhabs add an .ini file, and allow for Mouse4 and Mouse5? :)
My main reason for suggesting this, is that my middle button doesn't work :P

Vonkie
Posts: 45
Joined: Fri Sep 21, 2012 11:24 am

Re: [Mod] Full mouse control [Updated 24/11/12 003]

Post by Vonkie » Sat Nov 24, 2012 5:34 pm

Mr_FJ wrote:Perhabs add an .ini file, and allow for Mouse4 and Mouse5? :)
My main reason for suggesting this, is that my middle button doesn't work :P
Actually, it should already work, if you open the game and press the 'input' tab.(When you open the program and are able to select the resolution and such.)

Image
As you can see here, it picked it up when I tried.
Though, you might need to disable some programs like Mouse-X that change these buttons.

User avatar
Eagle0600
Posts: 180
Joined: Thu Sep 10, 2009 9:16 am
Location: Brisbane, QLD, Australia, Southern Hemisphere, Earth, Sol, Inner Rim, Orion Arm, Milky-Way, Universe

Re: [Mod] Full mouse control [Updated 24/11/12 004]

Post by Eagle0600 » Sat Nov 24, 2012 7:36 pm

How about a compromise? Flipping the card/deck from face-down automatically rotates as if you pressed R, but flipping again just flips like normal?

Or, perhaps, double-right-click to rotate for viewing? I think I like that better, actually.

Post Reply