Create and Fuck your AI Cum Slut –70% OFF
x

Sancho1969

Message Maven
Modder
Donor
Jan 19, 2020
12,382
49,535
892
I'll be honest I code daily in python and have for the last 3 years and I didn't know 'zip' was a built in function call. Admittedly their ide should have probably flagged it.
It's used to combine dictionaries together. I use it to consolidate the mod's ChoiceGuide internal lists into one dictionary to be indexed and sorted.
TigerWolfe, here's an example of how I use Python's "zip" to stitch together multiple sorted lists into one final dictionary (just as a reference):
Python:
    sKeys = {}
    listKeys = list( combolistsort( k, 1 ) )
    listValues = list( combolist( k, 1 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    listKeys = list( combolistsort( k, 2 ) )
    listValues = list( combolist( k, 2 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    listKeys = list( combolistsort( k, 3 ) )
    listValues = list( combolist( k, 3 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    ...
 

botc76

The Crawling Chaos, Bringer of Strange Joy
Donor
Oct 23, 2016
4,526
13,620
775

TigerWolfe

Forum Fanatic
Oct 19, 2022
4,568
8,984
604
It's used to combine dictionaries together. I use it to consolidate the mod's ChoiceGuide internal lists into one dictionary to be indexed and sorted.
Nice, the corporate style guide I'm beholden to avoids the use of dictionaries wherever possible. So that'd explain why I've not used it.
 

TigerWolfe

Forum Fanatic
Oct 19, 2022
4,568
8,984
604
TigerWolfe, here's an example of how I use Python's "zip" to stitch together multiple sorted lists into one final dictionary (just as a reference):
Python:
    sKeys = {}
    listKeys = list( combolistsort( k, 1 ) )
    listValues = list( combolist( k, 1 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    listKeys = list( combolistsort( k, 2 ) )
    listValues = list( combolist( k, 2 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    listKeys = list( combolistsort( k, 3 ) )
    listValues = list( combolist( k, 3 ) )
    sKeys = dict( zip( listKeys, listValues ), **sKeys)
    ...
Nifty! Thanks!
 

benzene_phi73

New Member
Nov 18, 2021
8
54
90
Eternum [v0.7] [Caribdis] - Compressed

Use at your own risk.

Win/Linux [1,92 GB]
- MEGA - - PIXELDRAIN

Mac [1,91 GB]
- MEGA - - PIXELDRAIN

You don't have permission to view the spoiler content. Log in or register now.
----------------------------------
Eternum [v0.7] [Caribdis] - Update only

The patch may break your game, use at your own risk.
If you missed it you can find the old Update only patch HERE.

Universal: v0.6.2 -> v0.7 [1,16 GB]
- MEGA - - PIXELDRAIN

Universal Compressed: v0.6.2 -> v0.7 [277 MB]
- MEGA - - PIXELDRAIN

You don't have permission to view the spoiler content. Log in or register now.

Please @ me or quote this post if there is a new version that doesn't show up on the "Latest Updates" page.
Compressed Link is here.
 

ArDZer

Well-Known Member
Feb 20, 2019
1,944
5,542
698
/sigh

Yeah yeah...

/swaps avatar to this:

View attachment 3467025
That's one lovely profile photo you've got there Dorf. So glad I didn't make a bet like that one. I wonder what Dylan thinks about seeing a bearded Nova once he logs in.
1711070137677.png
That really made laugh, sorry mate. Talk about an edited image (at least it isn't that cursed like the other ones we're used to see at times).
 
4.80 star(s) 1,169 Votes