Menu

LEX File Exchange
EA Support Files
SC4 Wikipedia
Network Addon Mod
Dependencies
Chat
Welcome, Guest. Please login or register.
Did you miss your activation email?

December 01, 2021, 06:46:13 AM

Login with username, password and session length

Author Topic: LEX Dependency Tracker Instructions  (Read 6871 times)

0 Members and 1 Guest are viewing this topic.

Offline CasperVg

  • Administrator
  • Forums Guru
  • *
  • Posts: 2890
  • Total likes: 444
  • Reputation: 47
  • CL:
    The Go-To Guy!!
LEX Dependency Tracker Instructions
« on: June 12, 2014, 01:10:27 PM »
The much-delayed mini-tutorial on creating LEX Dependency Tracker lists is finally here! In case you don't know what I'm talking about - it's this section of the LEX Upload and LEX Edit forms:



Basically, it works like this:

Dependencies on the SC4D LEX:
Add the LotID of the dependency to the list. The LotID is the number after ?lotGET=XXX in a LEX url.

Add this:
Code: [Select]
LOTID$

So, for example, if you want to add Vnaoned's Saint Croix Church (
http://sc4devotion.com/csxlex/lex_filedesc.php?lotGET=2985 ) to your list of dependencies..

Add this:
Code: [Select]
2985$

The dollar-sign is used as a separator between each entry, much like a comma would be in a sentence.

Pretty simple, right? The LEX software will do all the hard work for you (fetching the lot name, author, upload dates, and so on).

If you do not want the dependency tracker to recursively add the dependencies from the file that you listed as a dependency, prefix the LEX identifier with an underscore (_). So, it would look like this:

Code: [Select]
_2985$

If you want to add a comment describing why this file was included as a dependency, or which files specifically need to be installed (e.g. only the .SC4Model files), you can suffix the identifier with a number sign/hash sign/hashmark (#) and the comment to be displayed, for example:

Code: [Select]
2985#Only the .SC4Model files are required!

Dependencies that are not on the SC4D LEX
The process is a little more complicated for dependencies that are not on the LEX. Because we don't have direct access to those files, we don't know the filenames automatically, nor the actual links. So you have to add both as an entry.

Code: [Select]
LOTNAME@LINK_TO_DEPENDENCY$

Where LOTNAME is the name of the dependency, and LINK_TO_DEPENDENCY is a hyperlink to the dependency download page.

For example, if you want to add Pitt Street Apartments (which is on the STEX) as a dependency, add this to the dependency tracker line:

Code: [Select]
Pitt Street Apartments@http://community.simtropolis.com/files/file/28893-pitt-street-apartments/$

If you want to add a comment describing why this file was included as a dependency, or which files specifically need to be installed (e.g. only the .SC4Model files), you can suffix the name of the offsite file with a number sign/hash sign/hashmark (#) and the comment to be displayed. The comment may not contain any '@' signs, as that would interfere with the link. For example:

Code: [Select]
Pitt Street Apartments#Only the .SC4Model files are required!@http://community.simtropolis.com/files/file/28893-pitt-street-apartments/$


What if my lot has no dependencies at all?
Then it's really simple. Either add "NONE" to the dependency list, or leave it blank.

How about a real life example?
Okay, sure. Let's take the ITC Embassy. That lot has 7 dependencies, 6 on the LEX and 1 on CapitalSim.


All this condenses into the following LEX Dependency Tracker list:

101$403$1180$746$556$443$2324#Needed for queries$Embajada Official de Atlantis#You only need the .SC4Model file!@http://descargas.capitalsim.net/?sitio=csc&descarga=925

Which looks like this in the form field:


and like this in the Dependency Tracker:




I hope this tutorial has been helpful. Feel free to ask question if something is not clear enough :)
« Last Edit: September 15, 2018, 02:35:56 AM by CasperVg »
Follow my SimCity 4 Let's play on YouTube

Offline JoeST

  • Moderator
  • Forums Guru
  • *
  • Posts: 2648
  • Total likes: 15
  • Reputation: 10
  • fbstj
  • CL: Not your average...
Re: LEX Dependency Tracker Instructions
« Reply #1 on: June 13, 2014, 11:29:32 AM »
is there a reason this has to be $-separated and all on a single line? would it not be more sensible to make it a multiline field where each line is either number or text@link?
Copperminds and Cuddleswarms

Offline CasperVg

  • Administrator
  • Forums Guru
  • *
  • Posts: 2890
  • Total likes: 444
  • Reputation: 47
  • CL:
    The Go-To Guy!!
Re: LEX Dependency Tracker Instructions
« Reply #2 on: June 13, 2014, 11:41:42 AM »
No particular reason. It just turned out to be a bit easier to explode() the list on '$' than on newlines, which could be \n, \r\n, etc. Since $ cannot appear in URLs, it seemed like a good choice at the time
Follow my SimCity 4 Let's play on YouTube

Offline vortext

  • Administrator
  • Forums Guru
  • *
  • Posts: 3364
  • Total likes: 580
  • Reputation: 23
  • CL:
    Street Smarts
Re: LEX Dependency Tracker Instructions
« Reply #3 on: June 13, 2014, 12:05:40 PM »
Nicely presented mini tutorial, good work Casper!  &apls
time flies like a bird
fruit flies like a banana

Offline CasperVg

  • Administrator
  • Forums Guru
  • *
  • Posts: 2890
  • Total likes: 444
  • Reputation: 47
  • CL:
    The Go-To Guy!!
Re: LEX Dependency Tracker Instructions
« Reply #4 on: September 15, 2018, 02:37:51 AM »
Some extra functionality was added to the Dependency Tracker today, allowing you to specify that certain dependencies should not be recursively analysed (so their dependencies are not added to your list) and allowing you to add some comments as to why a certain file is included in the dependency list, or to specify what exactly is needed (e.g. only .SC4Model files or a specific .dat file).

The tutorial has been updated to add these changes.

Offline matias93

Re: LEX Dependency Tracker Instructions
« Reply #5 on: September 15, 2018, 09:17:35 AM »
Wow, great addition!  &apls
Would it be possible to implement, for end-users, a manual system to mark third-party files as already downloaded? That would come in handy when checking dependencies while downloading them from different sites.
Another cool feature would be the option to wipe clean the list of downloaded files, in case one has lost their old files or is trying to rebuild their own library.

"Lets be scientists and as such, remember always that the purpose of politics is not freedom, nor authority, nor is any principle of abstract character,
but it is to meet the social needs of man and the development of the society"

— Valentín Letelier, 1895

Offline Simmer2

  • NAM Team
  • Forums Parliamentarian
  • *
  • Posts: 1338
  • Total likes: 9100
  • Reputation: 20
  • If you build it, they will come.
  • CL:
    ══ Titan of Industry ══
Re: LEX Dependency Tracker Instructions
« Reply #6 on: September 15, 2018, 11:25:04 AM »
Thank you Casper &apls

The reason I asked that question over at Discord is because I use the non seasonal modded props from Girafe's uploads therefore the recursive dependency was really not necessary.
The underscore trick does the...trick! :D

Simmer2
________________________________________________________________________________

Offline Tyberius06

Re: LEX Dependency Tracker Instructions
« Reply #7 on: September 15, 2018, 12:48:32 PM »
Thank you very much Casper! It's amazing!  &apls &apls &apls

- Tyberius
You may find updates about my ongoing projects into my development thread here at SimCity 4 Devotion: Tyberius Lotting Experiments
or over there on Simtropolis into the Tyberius (Heretic Projects) Lotting and Modding Experiments.
I'm also member of the STEX Custodian and working on different restoration projects on behalf of non-anymore-active custom content creators.
Current projects: WMP Restoration and SimCity Polska Restoration.
Member of the NAM Team and RTMT Team.

Offline mattb325

  • BSC Team
  • Forums Parliamentarian
  • *
  • Posts: 1745
  • Total likes: 5719
  • Reputation: 27
  • CL:
    SC4D Housing Authority
Re: LEX Dependency Tracker Instructions
« Reply #8 on: September 17, 2018, 03:46:21 PM »
Nice one! :thumbsup: