Test Post Thread
-
-
Keychain she/herMafia Scumshe/her
- Mafia Scum
- Mafia Scum
- Posts: 1030
- Joined: November 16, 2014
- Pronoun: she/her
- Location: London UK
-
-
Keychain she/herMafia Scumshe/her
- Mafia Scum
- Mafia Scum
- Posts: 1030
- Joined: November 16, 2014
- Pronoun: she/her
- Location: London UK
-
-
mastina She/HerFalse ProphetShe/Her
- False Prophet
- False Prophet
- Posts: 16670
- Joined: October 7, 2016
- Pronoun: She/Her
- Location: Between Snohomish and Monroe, WA
So this should work, but I need confirmation.
- ASpoiler: Dicey
- BSpoiler: Dicey
- CSpoiler: Dicey
- DSpoiler: Dicey
- ESpoiler: Dicey
- FSpoiler: Dicey
- GSpoiler: Dicey
- HSpoiler: Dicey
- ISpoiler: Dicey
- JSpoiler: Dicey
- KSpoiler: Dicey
- LSpoiler: Dicey
- MSpoiler: Dicey
- NSpoiler: Dicey
- OSpoiler: Dicey
- PSpoiler: Dicey
- QSpoiler: Dicey
- RSpoiler: Dicey
- ASpoiler: Dicey
- BSpoiler: Dicey
- CSpoiler: Dicey
- DSpoiler: Dicey
- ESpoiler: Dicey
- FSpoiler: Dicey
- GSpoiler: Dicey
- HSpoiler: Dicey
- ISpoiler: Dicey
- JSpoiler: Dicey
- KSpoiler: Dicey
- LSpoiler: Dicey
- MSpoiler: Dicey
- NSpoiler: Dicey
- OSpoiler: Dicey
- PSpoiler: Dicey
- QSpoiler: Dicey
- RSpoiler: Dicey
Let's see if it looks as I think it will.-
-
mastina She/HerFalse ProphetShe/Her
- False Prophet
- False Prophet
- Posts: 16670
- Joined: October 7, 2016
- Pronoun: She/Her
- Location: Between Snohomish and Monroe, WA
Okay so I forgot that I needed a line break after the floats for the "let's see if this works as I expect", but yes.
It did in fact work the way I thought it would.
(What is this? This is me testing something out for modding, it'll be involved in my role randomization process.)-
-
Pine In Your Head
- In Your Head
- In Your Head
- Posts: 16763
- Joined: February 27, 2011
- Location: Upstate New York
-
-
Alisae lolbalance
- lolbalance
- lolbalance
- Posts: 47098
- Joined: October 31, 2016
- Location: Cali~ (PST)
Pine you should read this!In post 1329, Pine wrote:Need to figure out tables.
ColorsNumbers- Red
- Blue
- Yellow
- Green
- Orange
- Purple
- One
- Two
- Three
| here.GTKAS-
-
Pine In Your Head
- In Your Head
- In Your Head
- Posts: 16763
- Joined: February 27, 2011
- Location: Upstate New York
-
-
Kison
-
-
Kison .GIFted
-
-
Kison .GIFted
- .GIFted
- .GIFted
- Posts: 6714
- Joined: January 22, 2007
Code: Select all
public List<List<ProductCategory>> getProductCategoryChains(Connection connection, Collection<Integer> bottomLevelProductCategoryIds) throws SQLException { List<List<ProductCategory>> productCategoryChains = new ArrayList<List<ProductCategory>>(); Map<Integer, List<List<ProductCategory>>> currentCategoryIdToChainMap = new HashMap<Integer, List<List<ProductCategory>>>(); Set<Integer> currentProductCategoryIds = new HashSet<Integer>(); for(int productCategoryId : bottomLevelProductCategoryIds) { List<ProductCategory> productCategoryChain = new ArrayList<ProductCategory>(); productCategoryChains.add(productCategoryChain); miscUtil.pushToListMap(productCategoryId, currentCategoryIdToChainMap).add(productCategoryChain); currentProductCategoryIds.add(productCategoryId); } while(!currentProductCategoryIds.isEmpty()) { Map<Integer, ProductCategory> productCategoryMap = getProductCategoryMap(connection, currentProductCategoryIds); Set<Integer> nextProductCategoryIds = new HashSet<Integer>(); for(ProductCategory productCategory : productCategoryMap.values()) { List<List<ProductCategory>> tempProductCategoryChains = currentCategoryIdToChainMap.get(productCategory.getId()); tempProductCategoryChains.forEach(chain -> chain.add(0, productCategory)); if(productCategory.getParentId() != null) { nextProductCategoryIds.add(productCategory.getParentId()); if(currentProductCategoryIds.contains(productCategory.getParentId())) currentCategoryIdToChainMap.remove(productCategory.getId()); miscUtil.pushToListMap(productCategory.getParentId(), currentCategoryIdToChainMap).addAll(tempProductCategoryChains); } } currentProductCategoryIds = nextProductCategoryIds; } return productCategoryChains; }
-
-
Kison .GIFted
- .GIFted
- .GIFted
- Posts: 6714
- Joined: January 22, 2007
-
-
Kison .GIFted
- .GIFted
- .GIFted
- Posts: 6714
- Joined: January 22, 2007
-
-
Kison
-
-
MathBlade He/HimTechnical SupportHe/Him
- Technical Support
- Technical Support
- Posts: 42761
- Joined: September 9, 2013
- Pronoun: He/Him
- Location: Western US
Getting tired of going back to my old post.
Spoiler: VoteCount Settings2
Spoiler: Day 1
Spoiler: VoteCount SettingsLast edited by MathBlade on Thu Jun 21, 2018 1:18 pm, edited 8 times in total.ScumBlade's eloquent performance left me utterly disoriented, debased, depraved and sent me spiraling into a horrific murky abyss with emotional turmoil and immense despair as my only companions until slowly I suffocate in my own gloom, surrounded by failure. I will never recover. -- Zachstralkita about Mini 1841
GTKAS -- MathBlade-
-
Kison
-
-
Kison .GIFted
- .GIFted
- .GIFted
- Posts: 6714
- Joined: January 22, 2007
-
-
BNL Micro Madness
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
-
-
BNL Micro Madness
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
Wait so dice tags don’t work for 5058? Looks like we need a new way to generate roles for GIM-
-
BNL Micro Madness
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
-
-
BNL Micro Madness
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
-
-
Kison
-
-
Ircher He / Him / HisWhat A Grand IdeaHe / Him / His
- What A Grand Idea
- What A Grand Idea
- Posts: 15190
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
Nope!In post 1342, BNL wrote:Wait so dice tags don’t work for 5058? Looks like we need a new way to generate roles for GIM
Maybe:
Original Roll String: 50d500-5050 500-Sided Dice: (214, 393, 98, 51, 108, 87, 479, 344, 344, 218, 199, 46, 61, 191, 300, 218, 432, 128, 471, 164, 423, 231, 477, 366, 328, 103, 215, 169, 273, 464, 71, 76, 254, 426, 459, 393, 106, 367, 98, 261, 9, 484, 472, 433, 253, 266, 248, 341, 27, 50)-50 = 12639
Original Roll String: 1d59-11 59-Sided Dice: (18)-1 = 17-
-
Ircher He / Him / HisWhat A Grand IdeaHe / Him / His
- What A Grand Idea
- What A Grand Idea
- Posts: 15190
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
-
-
Ircher He / Him / HisWhat A Grand IdeaHe / Him / His
- What A Grand Idea
- What A Grand Idea
- Posts: 15190
- Joined: November 9, 2015
- Pronoun: He / Him / His
- Location: CST/CDT
Original Roll String: 1d50(STATIC) 1 50-Sided Dice: (29) = 29
Original Roll String: 1d50*2(STATIC) 1 50-Sided Dice: (29)*2 = 58
Edit:
Original Roll String: 1d50*21 50-Sided Dice: (2)*2 = 4
Original Roll String: 1d50+21 50-Sided Dice: (33)+2 = 35-
-
BNL Micro Madness
- Micro Madness
- Micro Madness
- Posts: 3338
- Joined: September 15, 2015
- Location: EDT+12
Original Roll String: 1d50*501 50-Sided Dice: (42)*50 = 2100
Copyright © MafiaScum. All rights reserved.
-
-
-
-