theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Convert student-facing agent to character - [closed] #735

Closed benloh closed 1 year ago

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 06:53

_Merges convert_agent_tocharacter -> dev-next

This was mostly a find-replace, but it changed a lot. Make sure to grab newest art-assets.

I've tested upcoming scripts carefully and it seems to have gone off without a hitch.

For version 2.0 we want to change the built in agent to character, but I didn't risk that. I figure that's an expert feature so it can wait.

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 06:53

requested review from @benloh

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 12:44

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 13:34

added 4 commits

Compare with previous version

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 14:04

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 14:17

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @jdanish on Oct 2, 2022, 14:27

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @daveseah on Oct 2, 2022, 16:28

I did a quick review of what's in here up to "Last reversions (we hope) back to Agent where Joshua was converting to Character and shouldn't have been" and there are quite a few internal methods that got renamed and then renamed back. Not all of them are renamed back, and this means that someone will have to do a review of all the datacore modules and ensure they are consistent.

For example, there's this reversion:

-- function removeCharacter(instanceDef: TInstanceDef) {
++ function RemoveAgent(instanceDef: TInstanceDef) {
  SIMAGENTS.DeleteCharacter(instanceDef);
}

The name of the removeCharacter was changed, but the function itself is calling another renamed method called SIMAGENTS.DeleteCharacter(), so the fix is clearly incomplete.

The best way to clean this up is to walk all the importers of the various datacore and top-level modules and check each method using a very specific search term that uses the whole word, not partial words, and match case.