Staredit Network

Staredit Network -> UMS Assistance -> Self-Setting Value
Report, edit, etc...Posted by EzDay281 on 2005-08-24 at 03:23:36
ModifyUnitResources(All, All Players, Anywhere%, );
It's supposed to be
ModifyUnitResources(All, All Players, Anywhere%, 88);
, but it stubbornly changes itself to nothing, which is being interpreted as 0.
So, all the mineral patches are getting set to 0 minerals.
SCMDraft TrigEdit will also change it to 0.
I'd try setting it to 88 in X-tra, but I have several units that would get deleted that I don't want to go through the trouble to place again.
Report, edit, etc...Posted by PCFredZ on 2005-08-24 at 09:41:31
QUOTE(EzDay281 @ Aug 24 2005, 03:23 AM)
ModifyUnitResources(All, All Players, Anywhere%, );
It's supposed to be
ModifyUnitResources(All, All Players, Anywhere%, 88);
, but it stubbornly changes itself to nothing, which is being interpreted as 0.
So, all the mineral patches are getting set to 0 minerals.
SCMDraft TrigEdit will also change it to 0.
I'd try setting it to 88 in X-tra, but I have several units that would get deleted that I don't want to go through the trouble to place again.
[right][snapback]297065[/snapback][/right]

Yeah, I tried the same thing and SF would make it blank again. Does it get set to 0 even when you don't change or even look at the ModifyUnitResources trigger in SF?
Report, edit, etc...Posted by EzDay281 on 2005-08-24 at 15:38:34
I don't know. How would I test that?
To set it to anything other than 0 I'd have to look at it, wouldn't I?
Report, edit, etc...Posted by PCFredZ on 2005-08-24 at 20:40:57
I just tested it. If you don't bother looking at it in Starforge, it runs fine even when resaved under SF.
Report, edit, etc...Posted by EzDay281 on 2005-08-24 at 21:31:03
And you change it without looking at it how?
It does it in SCMDraft too, and I already said I don't want to open my map in X-tra.
Report, edit, etc...Posted by PCFredZ on 2005-08-24 at 23:14:15
QUOTE(EzDay281 @ Aug 24 2005, 09:31 PM)
And you change it without looking at it how?
It does it in SCMDraft too, and I already said I don't want to open my map in X-tra.
[right][snapback]297665[/snapback][/right]

I mean I made the trigger in X-tra, opened it in SF, saved in SF, ran it and it worked. I suppose that if you don't want to open X-tra, you'd have to find another way to make the trigger. SF is just weird... pinch.gif
Report, edit, etc...Posted by Heimdal on 2005-08-25 at 01:26:20
Congratulations, you found a bug in the trigger defs file. Get the new one here and replace the one in your data folder. (You need to remove the .txt extension so it's a .lst file). If you've made some customizations to your actions.lst file, you can fix your current copy by changing the ModifyUnitResources function from this:
CODE
Action ModifyUnitResourceAmount(Count Count, Player Owner, Location Where, Number NewValue)
{
Action(Where, 0, 0, 0, Owner, 0, 0, 52, Count, 4);
}
to this:
CODE
Action ModifyUnitResourceAmount(Count Count, Player Owner, Location Where, Number NewValue)
{
Action(Where, 0, 0, 0, Owner, NewValue, 0, 52, Count, 4);
}
Report, edit, etc...Posted by PCFredZ on 2005-08-25 at 08:25:41
What about CreateUnitWithProperties? pinch.gif

ADD: What's with the first line, "omeAction NoAction()"? Should it be "Action NoAction()"?
Report, edit, etc...Posted by Sniper on 2005-08-25 at 15:50:36
How do i change it to a lst file?
Report, edit, etc...Posted by SacredElf on 2005-08-25 at 17:03:41
i think you have to edit current huh.gif
Report, edit, etc...Posted by PCFredZ on 2005-08-25 at 19:31:00
QUOTE(Mp)Sniper @ Aug 25 2005, 03:50 PM)
How do i change it to a lst file?
[right][snapback]298135[/snapback][/right]

Save it, open it in Notepad, and Save As a new file called Action.lst with the Type box on "All files".

Change the first line, though, so it says "Action NoAction()" instead of "omeAction NoAction()"
Report, edit, etc...Posted by EzDay281 on 2005-08-25 at 22:29:33
Or, you can just change the file name extension, if you have folder options set to display it.
Rename it from actionst.lst.txt to just actions.lst.
Personally, I like having filename extensions on, they allow me to quickly and easily change compatible filetypes like that.
Report, edit, etc...Posted by Sniper on 2005-08-25 at 22:37:14
Ya I actually tried that before posting, didnt work for me.
Report, edit, etc...Posted by PCFredZ on 2005-08-25 at 23:00:41
QUOTE(EzDay281 @ Aug 25 2005, 10:29 PM)
Or, you can just change the file name extension, if you have folder options set to display it.
Rename it from actionst.lst.txt to just actions.lst.
Personally, I like having filename extensions on, they allow me to quickly and easily change compatible filetypes like that.
[right][snapback]298417[/snapback][/right]

Windows is a pain in the @$$.
Report, edit, etc...Posted by Heimdal on 2005-08-26 at 09:24:58
If you don't know how to change file extensions, it's probably easier to just make the change yourself. And I don't know how that first line got messed up...

I'm going to change the attachment to a zip file.
Next Page (1)