Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

Reply
 
Thread Tools Display Modes
  #11  
Old 08-03-2010, 11:43 PM
Aleksandar Aleksandar is offline
Registered Member
 
Join Date: Aug 2010
Posts: 10
Default

Quote:
Originally Posted by Goblin Wizard View Post
@Aleksandar - nice to see an educated programmer here. I like poking through the scripts but it's just a hobby.
btw if I understand correctly - your script does the same as original only in other way. AFAIK CanAddProperty function is base function called from the exe so you shouldn't change it's name.
In a somewhat better and cleaner way. I understand that they never planned on having more than 3 prereqs and/or denials, but really - hardcoding to check only for one, two or three arguments is really lame. If you put in four denials the script would just return FALSE without checking anything. Mine evaluates the first one and collates (uses all the solutions so far in calculating the next one) all the others, either until it runs out of arguments or one of the prereqs hits FALSE. Then same (but inverse) applies for Denials (i just call them that way) after which the prereqsMet and !deniesMet vars are anded.

This way I can have as many prereqs and denies as I want and I'm not limited only to the first three. I believe these kind of bad coding practices are the root of all the limitations, such as having only 6 pilots and that crap.
Reply With Quote
  #12  
Old 08-04-2010, 03:09 AM
Trucidation
Guest
 
Posts: n/a
Default

Yea, like how they hardcoded missile launch sfx to a single file instead of allowing us to use the work_sound tag (which are in the damn xml definitions ffs...), how adding sound to missile flight causes the game to CTD when it impacts (probably something unfinished there), not to mention the inconsistencies in the xmls, that kind of thing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.