Buildpic Generator

Buildpic Generator

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Buildpic Generator

Post by Forboding Angel »

#lua wrote:[22:47:04] <[Evo]Forboding_Angel> Anyone here that can tell me how to use the CA buildpic generator?
[23:04:30] ** [1uP]CarRepairer joined the channel.
[23:16:44] <[Evo]Forboding_Angel> Anyone here that can tell me how to use the CA buildpic generator?
[23:18:28] <[LCC]jK> /cheat /luarules buildicons all
[23:42:57] <[Evo]Forboding_Angel> YAY, thanks JK!
[23:56:16] <[Evo]Forboding_Angel> where does it put the icon files?
[00:02:54] <[Evo]Forboding_Angel> so "How" do I use it? Don't I need to configure something? Or does it jsut detect all the units in the game? Also, where does it put the icon files? When I run that command I can't tell that it does anything.
[00:04:26] ** [W]Evil4Zerggin left the channel( Quit ).
[00:05:57] ** [W]Evil4Zerggin joined the channel.
[00:14:04] ** [1uP]CarRepairer left the channel( Quit: connection lost ).
[00:17:27] ** [fi]pakolainen left the channel( Quit ).
[00:18:20] <[Evo]Forboding_Angel> So "How" do I use the icon generator? Don't I need to configure something? Or does it jsut detect all the units in the game? Also, where does it put the icon files? When I run that command I can't tell that it does anything, and I see no newly crated folders or anything.
[00:31:16] ** [fi]pakolainen joined the channel.
[01:17:33] ** [LCC]jK left the channel( Quit ).
[01:24:10] ** KDR_11k joined the channel.
[01:49:51] <[Evo]Forboding_Angel> so "How" do I use it the icon generator? Don't I need to configure something? Or does it jsut detect all the units in the game? Also, where does it put the icon files? When I run that command I can't tell that it does anything.
[01:50:46] <[Evo]Forboding_Angel> I do find it kind of sad that I've asked the same question for 3 days in a row, and that tonight I've waited over four hours for an actual answer
[01:51:03] <[Evo]Forboding_Angel> [23:18:28] <[LCC]jK> /cheat /luarules buildicons all << I got that answer several hours ago though

Can someone please tell me how to actually use it?

I asked in #ca, #moddev and several other locations as well.
unit_icongenerator.lua
(34.27 KiB) Downloaded 132 times
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Buildpic Generator

Post by zwzsg »

Have you asked Smoth yet? :P
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Buildpic Generator

Post by CarRepairer »

It creates a folder in your spring folder called buildicons. Look there now.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Buildpic Generator

Post by SirMaverick »

Forboding Angel wrote:Can someone please tell me how to actually use it?

I asked in #ca, #moddev and several other locations as well.
Start ca, then:
/cheat
/luarules buildicons all

This information was already given in the chat and as comment in the file.

If you want to use it in your own mod you need to add the file as gadget (not sure if this file alone is enough).
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

CarRepairer wrote:It creates a folder in your spring folder called buildicons. Look there now.

It didn't create anything. Are other lua files needed (other then icongenbkgs of course)?

Course I could do what google suggested... Copy ca, replace with my units, viola, but in my opinion this is an extremely powerful tool for all modmakers, so why should it be so obscure as to how to use it?

I've already been making comments in my local copy about usage so hopefully the next person won't have to go through this crap :?
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: Buildpic Generator

Post by SirMaverick »

Forboding Angel wrote:It didn't create anything. Are other lua files needed (other then icongenbkgs of course)?
It includes LuaRules/Config/icon_generator.lua - you might need to adapt this for your mod.
Forboding Angel wrote:I've already been making comments in my local copy about usage so hopefully the next person won't have to go through this crap :?
If you share them we'll add them to CA.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Buildpic Generator

Post by Argh »

I had fun debugging it to work with World Builder.

Here's my fixed version, removed certain special UnitDef-based settings, etc.

You'll need to specify the background image before running it.
Attachments
unit_icongenerator.lua
(34.21 KiB) Downloaded 126 times
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

Have any of you tried it since the latest version of spring?

Also, the config is set, factions is set... Nothing happens.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Buildpic Generator

Post by smoth »

Worked for me steal my modified version from gundam if you are still having issues. Why di you not pm me?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

I had no idea you had ever used it O_O, thanks!
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Buildpic Generator

Post by smoth »

I used it for the lastest release. It generates them in your spring dir, you can find them in /buildpics/ or something like that. It will freeze your spring a bit while it is working btw.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

I grabbed it out of gundam, changed the unitnames in the config, ran it and... nothing happened.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Re: Buildpic Generator

Post by Peet »

.......running spring as admin?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

My spring install is on a separate drive. I started up gundam and ran it, and it worked fine.

Check out the attachment pls, and tell me if you guys see anything wrong?
buildicon_generator.zip
(9.88 KiB) Downloaded 19 times
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Buildpic Generator

Post by jK »

Forboding Angel wrote:I grabbed it out of gundam, changed the unitnames in the config, ran it and... nothing happened.
has your gadgetHandler DrawGenesis?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

I honestly have no idea, but someone who knows what to look for could prolly figure that out in 2 seconds or less:
Attachments
LuaRules.zip
(7.22 KiB) Downloaded 19 times
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Buildpic Generator

Post by lurker »

Ctrl+F?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

Already did that, came up with nothing.

In the chance that gadgets.lua was where that would be, I deleted it temporarily (cause gundam doesn't have it and it works fine with the generator) and tried it. No dice.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Buildpic Generator

Post by smoth »

this is possibly an obvious question but you did update the config and made sure you had the bg images?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Buildpic Generator

Post by Forboding Angel »

Yes I updated the config... Your config doesn't reference any bg images, you also don't have icongenbkgs, yet loading up gundam works fine.


... does the mod have to be in an sd7 or an sdz for this to work?
Post Reply

Return to “Lua Scripts”