| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#61 | |
|
Techpriest Aspirant
Join Date: Oct 2008
Posts: 2,439
|
Quote:
There is nothing quite like trapping a dragon in a wooden cage, training it and feeding it captured elves (you need to mod the game to let you butcher sentients thou) and than assigning it as a war animal to your main axeman whom you have previously trained in the kitten dispenser and danger room (bonus points if you can combine them) until he becomes a legendary emotionless husk of a bearded murder machine. You know?
__________________
Old signature. Looking for new one. Spoiler:
|
|
|
|
|
|
|
#62 | |
|
Political Activist
|
Quote:
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
|
#63 |
|
Political Activist
|
I read on the Civilization facebook page that Sweden under Gustavus Adolphus will be in CiV GaK. Firaxis agrees with me!
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#64 | |
|
Political Activist
|
Quote:
Code:
void CvPlot::doConsumeSupply()
{
if (getPlotCity() != NULL)
{
return; //Units in cities do not require supply
}
//Construct the needed entities...
int iConIt; //Or Construct Iterator, if you perfer.
typedef std::vector<int > intVector;
intVector* paiFoodUnits[MAX_CIV_PLAYERS];
for (iConIt = 0; iConIt < MAX_CIV_PLAYERS; iConIt++)
{
paiFoodUnits[iConIt] = new intVector;
}
intVector* paiMechUnits[MAX_CIV_PLAYERS];
for (iConIt = 0; iConIt < MAX_CIV_PLAYERS; iConIt++)
{
paiMechUnits[iConIt] = new intVector;
}
int iI;
//Organize Data
CvUnit* pUnit;
for(iI = 0; iI < getNumUnits(); iI++)
{
pUnit = getUnitByIndex(iI);
if (pUnit->getUnitInfo().getUnitCombatType() == -1)
{
continue;
}
if (pUnit->getUnitInfo().isNoSupply())
{
continue;
}
if (pUnit->getDomainType() == DOMAIN_SEA)
{
continue;
}
if (pUnit->getUnitInfo().isMechUnit())
{
paiMechUnits[(int)pUnit->getOwnerINLINE()]->push_back(iI);
}
else
{
paiFoodUnits[(int)pUnit->getOwnerINLINE()]->push_back(iI);
}
}
//Data Organized! Now for the supply!
for (iI = 0; iI < MAX_CIV_PLAYERS; iI++)
{
if ((paiMechUnits[iI]->size() == 0) && (paiFoodUnits[iI]->size() == 0))
{
continue;
}
int iJ;
std::vector<int> apBonusFoodVector; //This is a vector of the ammount of food each bonus produces when spent, ordered according to the order in the XML
std::vector<int> apBonusVector; //This a vector of the BonusType value of each CvBonusInfo sorted by the ammount of food they produce
for (iJ = 0; iJ < GC.getNumBonusInfos(); iJ++)
{
if (GC.getBonusInfo((BonusTypes)iJ).getSpendYieldProduced() != YIELD_FOOD)
{
apBonusFoodVector.push_back(0);
continue;
}
apBonusFoodVector.push_back(GC.getBonusInfo((BonusTypes)iJ).getAmmountProduced());
}
for (iJ = 0; iJ < GC.getNumBonusInfos(); iJ++)
{
apBonusVector.push_back(GC.getVectorHighestVal(&apBonusFoodVector));
apBonusFoodVector[GC.getVectorHighestVal(&apBonusFoodVector)] = 0;
}
int iCounter = 0;
int iFoodNeeded = paiFoodUnits[iI]->size();
int iFood = 0; //The ammount of food you accumulate
int iBonusFoodProduced;
for (iJ = 0; iJ < GC.getNumBonusInfos(); iJ++)//In this loop, iJ != BonusTypes!!!! Use apBonusVector[iJ] instead.
{
if (GC.getBonusInfo((BonusTypes)iJ).getSpendYieldProduced() != YIELD_FOOD)
{
break; //No point in bothering to continue because all the ones after this will also produce 0 food
}
int iBonusFoodProduced = GC.getBonusInfo((BonusTypes)apBonusVector[iJ]).getAmmountProduced();
int iResourceTemp = 0;
//Increase the ammount of the resource you're going to consume untill it's at the max it can be.
for(int iK = 0; iK < getNumResourceOnTileByPlayer((BonusTypes)apBonusVector.at(iJ), (PlayerTypes)iI); iK++) //iK = the ammount of the food resource that the units can consume
{
if ((iK * iBonusFoodProduced + (iFoodNeeded-iFood) <= iFoodNeeded) && ((iK+1 * iBonusFoodProduced + (iFoodNeeded-iFood) <= iFoodNeeded) || (iK+1 == getNumResourceOnTileByPlayer((BonusTypes)apBonusVector.at(iJ), (PlayerTypes)iI)) || (iK == getNumResourceOnTileByPlayer((BonusTypes)apBonusVector.at(iJ), (PlayerTypes)iI))))
{
for (int iL = 0; iL < getNumUnits(); iL++)
{
if (getUnitByIndex(iL)->getOwnerINLINE() == PlayerTypes(iI))
{
if (iK - iResourceTemp > getUnitByIndex(iL)->getNumResourcesCarried(apBonusVector[iJ]))
{
iResourceTemp += getUnitByIndex(iL)->getNumResourcesCarried(apBonusVector[iJ]);
getUnitByIndex(iL)->setNumResourcesCarried(apBonusVector.at(iJ), 0);
}
else
{
getUnitByIndex(iL)->changeNumResourcesCarried(apBonusVector[iJ], (iResourceTemp - iK));
iResourceTemp = iK;
}
}
}
iFood += iK * iBonusFoodProduced;
}
}
if (iFood == iFoodNeeded) //If we have enough food
{
break;
}
}
if (iFood < iFoodNeeded)
{
for (iJ = iFood; iJ < paiFoodUnits[iI]->size(); iJ++)//Start at the first unit that was not fed
{
getUnitByIndex(paiFoodUnits[iI]->at(iJ))->changeMorale(NOSUPPLY_MORALE_LOSS);
}
}
//Now, if you wish, we will do the same thing for mech units
if (paiMechUnits[iI]->size() > 0)
{
int iFuelBonus = GC.getInfoTypeForString(GC.getDefineSTRING("FUEL_RESOURCE")); //Unless someone has changed it, this will be oil.
int iAccumulated = 0;
if (getNumResourceOnTileByPlayer((BonusTypes)iFuelBonus, (PlayerTypes)iI) >= paiMechUnits[iI]->size())
{
//paiMechUnits already does not include units such as catapults that do not need supply
for (int iJ = 0; iJ < getNumUnits(); iJ++)
{
if (getUnitByIndex(iI)->getOwner() == (PlayerTypes)iI)
{
if (getUnitByIndex(iJ)->getNumResourcesCarried(iFuelBonus) <= (paiMechUnits[iI]->size() - iAccumulated))
{
iAccumulated += getUnitByIndex(iJ)->getNumResourcesCarried(iFuelBonus);
getUnitByIndex(iJ)->setNumResourcesCarried(iFuelBonus, 0);
}
else
{
getUnitByIndex(iJ)->changeNumResourcesCarried(iFuelBonus, iAccumulated - paiMechUnits[iI]->size());
iAccumulated = paiMechUnits[iI]->size();
}
}
}
for (int iK = iAccumulated; iK < paiMechUnits[iI]->size(); iK++)
{
getUnitByIndex(paiMechUnits[iI]->at(iK))->setMoves(0); //Vehicles without fuel cannot move
}
}
}
}
}
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
|
#65 |
|
Black Jesus
Join Date: Jan 2011
Location: Anywhere I want to be, yo
Posts: 2,593
|
MY EYES!! THEY BURN!!!
![]() ![]() Ahem. Sorry. In all honesty, good job!
__________________
Aw yeah, m'homies. I'm back.
|
|
|
|
|
|
#66 |
|
Deity
Join Date: Jul 2009
Location: Texas
Posts: 2,940
|
Suggestion: At the end of the function you should use the delete statement to free each thing you allocated via the new statement. If you don't, you've added a memory leak.
__________________
Mod: Final Frontier Plus, version 1.81 released 27-June-2012 Mod: Rocks 2 Rockets, version 0 patch 0.3 released 9-April-2013 |
|
|
|
|
|
#67 |
|
Political Activist
|
Thanks. My relative inexperience shows through.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#68 |
|
Political Activist
|
I finished the Gaul Civ. Uploading screenshots now...
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#69 |
|
Political Activist
|
Spent the last few days debugging the Method of Death. Still not done. I'll post if I survive.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#70 |
|
Political Activist
|
I'm alive.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#71 |
|
Say No 2 Net Validations
![]() ![]() |
...and successfully, I hope.
|
|
|
|
|
|
#72 |
|
Political Activist
|
Yeah, it no longer crashes. However, there's still MUCH more of the Morale mechanic to do.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#73 |
|
Political Activist
|
I haven't been getting much work done recently because Real Life stuff is getting the way. It will soon be resolved and I will be back to modding.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#74 |
|
Chieftain
Join Date: Apr 2010
Location: USA
Posts: 91
|
Is there a download available yet?
|
|
|
|
|
|
#75 |
|
Political Activist
|
Unfortunately, iNoc is far from done, however, I am working on it. I just started work on the Civilization Traits feature yesterday. Stay tuned! You have no idea how much I appreciate the interest.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#76 |
|
Chieftain
Join Date: Apr 2010
Location: USA
Posts: 91
|
Well, if you need someone to help with playtesting and whatnot, I'd be happy to. I have finally gotten tired of Civ3 (via the Rhye's of Civilization Random Mod) and am moving on to Civ4. I hate the vanilla game and this is one of the only modpacks that looks like it might be to my liking.
Are you open to suggestions? |
|
|
|
|
|
#77 |
|
Political Activist
|
You hate Vanilla? Why? And are you talking about true Vanilla or BtS?
If you like the look of iNoc, I would recommend Legends of Revolution and History in the Making. History Rewritten also looks appealing.
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#78 |
|
Chieftain
Join Date: Apr 2010
Location: USA
Posts: 91
|
BtS, also I've tried those mods, they really didn't make civ4 any more enjoyable for me, but I guess I should give them a second try.
|
|
|
|
|
|
#79 |
|
Political Activist
|
If you don't like Civ4, maybe you should try Civ5. Most of the people who liked Civ4 hated Civ5, so maybe it works the other way, too? Also, what made you dislike Civ4?
__________________
Think things that I say are funny? That's okay, I didn't think so. But check out my Fake News Blog anyway! "I do not feel obliged to believe that the same god who has endowed us with sense, reason, and intellect, has intended us to forgo their use." -Galileo Every gun that is made, every warship launched, every rocket fired, signifies in the final sense a theft from those who hunger and are not fed, those who are cold and are not clothed. -Eisenhower Civilization IV:is Now Obscenely Complecated! Featuring Resource Stockpiling, Stratigems, Culture Families, Heroes, and more! I have Asperger's Syndrome. If you do too and you're willing to come out, copy and paste this into your sig. |
|
|
|
|
|
#80 |
|
Techpriest Aspirant
Join Date: Oct 2008
Posts: 2,439
|
You should try Fall from Heaven. It just introduces a completely new gameplay. Especially the scenarios. It's been ages since I plaid anything else. Although I shall give this mod a try once it's done. It promises to be just as epic.
__________________
Old signature. Looking for new one. Spoiler:
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| development, inoc, mod |
|
| Thread Tools | |
|
|