Skyrim
0 of 0

File information

Last updated

Original upload

Created by

BlazesRus

Uploaded by

BlazesRus

Virus scan

Some files not scanned

2 comments

  1. BlazesRus
    BlazesRus
    • supporter
    • 7 kudos
    Anyone need my pseudo script console command code to use in there own tools?
    1. BlazesRus
      BlazesRus
      • supporter
      • 7 kudos
      Heres a sample snippet of code for using file for commands(need to create your own custom vector with equivalent functions for my VariableLists):

      #include "GUICodeGenerator.h"

      #include <stdio.h>
      #include "StringVectorList.h"
      #include "MiscFunctions.h"
      #include <iostream>
      #include "..\GlobalCode\VariableList.h"


      int main(int ConsoleParamNumber, char *CommandArgs [])
      {
      GUICodeGenerator ProgramGlobal;
      if(ConsoleParamNumber == 1)
      {//Program entered with no args
      //Placeholder for GUI
      }
      else if(ConsoleParamNumber == 2)
      {
      //Extracted file Args
      string Command(CommandArgs[1]);
      //0 = (Default)
      unsigned int CommandMode = 0;
      if(CommandMode == 0)
      {
      //First part of command;Syntax:[ScriptArg01=ScriptArg02]
      string ScriptArg01;
      //Command Value;Syntax:[ScriptArg01=ScriptArg02]
      string ScriptArg02;
      //CommandScan Stage (limited to value of 255 to save little ram)
      unsigned short CommandStage = 0;
      StringVectorList LoadedFile;
      LoadedFile.LoadFileWithoutComments(Command);
      //-------------------------------------------------------------------------------------------------
      string LineString = "";
      unsigned int LineSize;
      char LineChar;
      for(unsigned int LineNumber = 0; LoadedFile.StreamLineData(); LineNumber++)
      {
      LineString = LoadedFile.CurrentStreamedLineString();
      LineSize = LineString.length();
      for(unsigned int i = 0; i < LineSize; i++)
      {
      LineChar = LineString.at(i);
      if(LineChar == '<' )
      {
      ScriptArg01 = "";
      CommandStage = 1;
      }
      else if(CommandStage > 0 )
      {
      if(LineChar == ']' )
      {
      CommandStage = 0;
      //Execute Value set Commands here
      if(ScriptArg01 == "CMD" )
      {
      }
      }
      else if(LineChar == '=' || LineChar == ':' )
      {
      CommandStage = 2;
      }
      else if(CommandStage == 2)
      {
      ScriptArg02 += LineChar;
      }
      else
      {
      ScriptArg01 += LineChar;
      }
      }
      }
      }
      }
      }
      }